Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
87 | |
66 | |
51 | |
45 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |