Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Dynamic Management View (DMV) queries against PowerBI model. How to automate load into DB?

Hi 
I have been using SQL Server Management Studio to manually execute DMVs to query XMLA endpoints in our PowerBI Premium workspaces. These queries return useful information on the underlying PBI SSAS database such as:

  • M expressions in the model
  • Tables in the model
  • Relationships between the tables
  • Measures & DAX
  • Calculated columns

I would like to programtically extract the above information from all our PowerBI Premium workspaces and load it into a central database (probably SQL Azure DB) for further analysis. However,  I am struggling to find relevant information (and examples) on the more complex querying capabilities of DMVs, and scheduling DMVs. Can anyone provide any insight (or links) as to whether:

 

Any advice, during this early planning stage would be welcome

Cheers
Steve

4 Replies