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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Preenz
New Member

PowerBI API how to get measures of a table

https://learn.microsoft.com/en-us/rest/api/power-bi/

Based on the documentation for getTables:
GET https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/tables
the measures should be appearing here, but the result only put the table name and nothing else

I have also tried using
GET https://api.powerbi.com/v1.0/myorg/groups/${groupId}/datasets/${datasetId}/tables/${tableName}/c...
it returns all columns but the measure is not there

so what is actually the way to get the measures using the API?

1 REPLY 1
foodd
Super User
Super User

Using DAX Studio, the DMV MDSCHEMA_MEASURES is set up to return the 

measures in the model.   There are a number of tools I would turn to Tablular Editor, SSMS,

Measure Killer that have equal or more advantage.   Using the API is not my first choice 

for documentation.  In this example, using DAX Studio, enter the following query:

 

SELECT 
    [CATALOG_NAME] as [DATABASE]
    , CUBE_NAME AS [CUBE]
    ,[MEASUREGROUP_NAME] AS [FOLDER]
    ,[MEASURE_CAPTION] AS [MEASURE NAME]
    ,[EXPRESSION] AS [MEASURE EXPRESSION]
    ,[MEASURE_IS_VISIBLE]
FROM $SYSTEM.MDSCHEMA_MEASURES

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors