In c# scripting, is there a way to get to the Expression or FormatString for a dataset that is a Power BI dataset? #1148
Answered
by
otykier
dpesante
asked this question in
🙋♀️TE3 Q&A
-
For example when I examine the measure properties using "m.Output();" I see the following in the FormatString property: EXTERNALMEASURE( Is there a way to take this string and run it so that it returns the actual FormatString of the measure in the Power BI Dataset? |
Beta Was this translation helpful? Give feedback.
Answered by
otykier
Jul 14, 2023
Replies: 1 comment
-
Hi @dpesante var formatString = EvaluateDax(m.FormatStringExpression).ToString();
formatString.Output(); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mlonsk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @dpesante
You want to evaluate the DAX expression making up the FormatStringExpression, from within a C# script?
EvaluateDax