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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Brilliant
Regular Visitor

Retrieve Measures Using REST API

Hi everyone!

I wanted to get all of the measures using the PowerBI REST API.
I couldn't retrieve measures. I have only retrieved the datasets and data sources.
But datasources have poor information and even I can't get modified date or created date from the provided PowerBI REST API.

"https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasets"

Could you help me with this?
Also, I want to know if there is any other REST API for PowerBI Service

Thanks for your help! 🙂

1 ACCEPTED SOLUTION

Hi @Brilliant 

 

if you'd like retrieve all measures from one pbix file, you might try below methods:

You can run a DMV query against the Tabular cube.

Essentially you need to connect to your Power BI Desktop instance from a tool such AS Sql Server Management Studio (or MDX Studio) and issue the following Query

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

This will output information on your measures

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

4 REPLIES 4
v-diye-msft
Community Support
Community Support

Hi @Brilliant 

 

If you've fixed the issue on your own please kindly share your solution. if the above posts help, please kindly mark it as a solution to help others find it more quickly.thanks!

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Jayendran
Solution Sage
Solution Sage

Hi @Brilliant ,

 

You can Push Datasets - Datasets GetTables which can gives you the column,measures etc., 

 

https://docs.microsoft.com/en-us/rest/api/power-bi/pushdatasets/datasets_gettables

 

However this API can able work only with Push DataSet, If you developed your report from powerbi desktop then this API will not work.

Thanks for your kind reply

Is there any method for getting metadata without using Push Datasets?

So that I can get measures from the Datasets which are not created using Push Datasets...

I hope you have a solid solution for that.

Thanks

Hi @Brilliant 

 

if you'd like retrieve all measures from one pbix file, you might try below methods:

You can run a DMV query against the Tabular cube.

Essentially you need to connect to your Power BI Desktop instance from a tool such AS Sql Server Management Studio (or MDX Studio) and issue the following Query

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

This will output information on your measures

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors