March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I am trying to generate a list of measures that exist on a PBI desktop file with a live connection to a SQL database. Using DaxStudio "select * from $SYSTEM.MDSCHEMA_MEASURES" retrieves the Measures that exist in the backend SQL db but not the measures that exist on the Desktop file!
Any ideas?
Solved! Go to Solution.
Well, if you are connecting to SSAS via Live Connection vs Import, then that is the answer. It cannot show you your own measures in the PBIX file at this time. I don't know if that is a feature that is being worked on or not.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingIs your data in SSAS on the SQL server, because DAX measures don't exist in SQL databases themselves, just SSAS.
If SSAS, have you confirmed you connected DAX Studio to your PBIX file when it was open? It defaults to connecting to an SSAS server (third radio button when DAX Studio launches)
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingHi Edhans
I tried to connect to the Opened local PBIX file that has the live connection to SQL and get the following message.
Then when I Connect to the Tabular Server I do see all the tables in the PBIX file. Run select * from $SYSTEM.MDSCHEMA_MEASURES and it will not list any of the measures that I created in the Desktop App. Only shows measures that were developed in SQL(I think!) not by me anyway!
Right, because the SSAS server doesn't know what you've done in the PBIX file. To connect to the PBIX file do the following:
If you do it in any other order, it likely will not connect.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingThanks. I tried what you suggested and got the following message.
@edhans wrote:Right, because the SSAS server doesn't know what you've done in the PBIX file. To connect to the PBIX file do the following:
- Close DAX Studio.
- Start Power BI Desktop and load the PBIX file
- Start DAX Studio
- Connect to the Power BI desktop file.
If you do it in any other order, it likely will not connect.
Well, if you are connecting to SSAS via Live Connection vs Import, then that is the answer. It cannot show you your own measures in the PBIX file at this time. I don't know if that is a feature that is being worked on or not.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingMarch 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
86 | |
73 | |
57 | |
52 |
User | Count |
---|---|
201 | |
137 | |
108 | |
73 | |
68 |