cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
olegkazanskyi
Helper I
Helper I

How to get M query from dataflows. Power BI Server Analysis Services DMV request

The target is to get all  M codes from Power BI Service.

dataflows take a big part in the Power BI data structure.

 

I tried codes that work for datasets, but they apparently do not work for dataflow:

SELECT *

FROM $SYSTEM.TMSCHEMA_PARTITIONS

 

and

 

SELECT *

FROM $SYSTEM.TMSCHEMA_EXPRESSIONS

 

In The Power BI Workspace opened with Analysis services there is an entity named "Dataflows" with all the dataflow inside.

I try running the same codes for this entity as for datasets, but the results are weird. 

Some codes show reference to a table itself, and 90% of tables are missing.

 

Is there a way to get M Query for all tables inside dataflow (loaded and not loaded) using DMV queries?

 

@d_gosbell , @lbendlin  could you help with this issue?

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

There is no XMLA endpoint access to the dataflows at the moment. You would have to export the JSON files one by one.

 

lbendlin_0-1639604878989.png

Or use the API

Dataflows - Get Dataflow - REST API (Power BI Power BI REST APIs) | Microsoft Docs

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

There is no XMLA endpoint access to the dataflows at the moment. You would have to export the JSON files one by one.

 

lbendlin_0-1639604878989.png

Or use the API

Dataflows - Get Dataflow - REST API (Power BI Power BI REST APIs) | Microsoft Docs

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

Power BI Dev Camp Session 22 with aka link 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!