Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
CHeard192
New Member

Querying DMV Data Types in DAX Studio

Hi all,

 

In DAX Studio, I've been querying the DMV using:

select * from $SYSTEM.TMSCHEMA_COLUMNS

There are two columns (ExplicitDataType and InferredDataType) which contain ID's to data types used in Power BI.

However, I'm unable to find somewhere with the dimension table for these data types.

 

Is anyone able to point me in the right direction?

1 ACCEPTED SOLUTION
Sahir_Maharaj
Super User
Super User

Hello @CHeard192,

 

The $SYSTEM.TMSCHEMA_COLUMNS DMV in DAX Studio provides information about columns, including data type details, but it doesn't directly map to a dimension table for data types.

 

However, you can access information about data types using DAX functions:

  1. DATATABLE: The DATATABLE function lets you create a table with explicit data types for columns.

  2. DATATYPE: The DATATYPE function returns the data type of an expression.

  3. ISNUMBER, ISTEXT, ISDATE: These functions return TRUE or FALSE based on whether the expression's data type matches the function's name.

  4. VALUES: The VALUES function can be used to retrieve distinct values from a column, which can also give you an idea of the data type of that column.

  5. COLUMNS: The COLUMNS function returns a table of columns from a table or table expression along with their data types.

Should you require further assistance, please do not hesitate to reach out to me.


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

View solution in original post

2 REPLIES 2
Sahir_Maharaj
Super User
Super User

Hello @CHeard192,

 

The $SYSTEM.TMSCHEMA_COLUMNS DMV in DAX Studio provides information about columns, including data type details, but it doesn't directly map to a dimension table for data types.

 

However, you can access information about data types using DAX functions:

  1. DATATABLE: The DATATABLE function lets you create a table with explicit data types for columns.

  2. DATATYPE: The DATATYPE function returns the data type of an expression.

  3. ISNUMBER, ISTEXT, ISDATE: These functions return TRUE or FALSE based on whether the expression's data type matches the function's name.

  4. VALUES: The VALUES function can be used to retrieve distinct values from a column, which can also give you an idea of the data type of that column.

  5. COLUMNS: The COLUMNS function returns a table of columns from a table or table expression along with their data types.

Should you require further assistance, please do not hesitate to reach out to me.


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Huge help. Thanks Sahir!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.