The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a Power BI model which I'm trying to read the Metadata of.
Running the following query in DAX Studio works really well:
SELECT *
FROM $SYSTEM.MDSCHEMA_MEASURES
If I try to change it to list specific columns the way I want to, for example:
SELECT measure_cAption FROM $SYSTEM.MDSCHEMA_MEASURES
It works.
But not if I want DESCIPRION!
SELECT measure_cAption, DESCRIPTION
FROM $SYSTEM.MDSCHEMA_MEASURES
returns an error.
What am I missing? Or is this a bug? Images below
Many thanks!
@HilaDG Darren responded:
I believe the DESCRIPTION is a keyword in the Microsoft DMX language (which is what the DMV queries use)
If you enclose it in square brackets it should work SELECT [DESCRIPTION] FROM $SYSTEM.MDSCHEMA_MEASURES
@HilaDG Yup, that is strange. Raised the issue here: https://github.com/DaxStudio/DaxStudio/issues/1065