Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

DAX command from a string

Hi,

I was wondering if it is possible to store all my DAX measures in a field in a table.

I'm thinking about creating a kind of knowledge base whre I can store all the measures my company could use. In this table I would have a text field contaning the measure itself, plus others fields for example to explain what the measure does, what are the tables necessary to excute them and may others informations.

I know I can store the measure as a string, but how would I convert that string into a valid DAX command in Power BI?

Is this possible?

Thank you.

  • Anonymous  yes it is absolutely possible. If you are publishing the model in a workspace, you can write DMV queries  that would return all your measures in a table

    select * from $SYSTEM.TMSCHEMA_MEASURES

     

    bcdobbs 

     

4 Replies