Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi. I am try to implement a 'universal measure' that masquerades as other ones I've already created, and also use it in a different calculation depending on a selected value of another dimension attribute. So my attribute 'Universal Metic'[Cube Measure Name] lists the avaiable measures to use, and then 'Universal Metric'[UM Calc Method] is a list of values describing how we want to use the measure (eg. default, previous month, varince vs last month etc).
Now I know I could use a switch statement to evaluate the selected [Cbe Measure Name] but when I have 100+ actaul measures this becomes unmanagable. Therefore my question is, is there a way to treat my VAR UniMeasure as the actual measure instead of it just being the string value? I was hoping there was a function I could wrap around the highlighted statement in the calculation below which would effectively be CONVERT_STRING_TO_MEASURE().
Hopefully someone has tried this before and succeded, or has a work around?
Thanks.
Solved! Go to Solution.
There is already an idea, you may leave a comment and vote it up.
The link to the possible solution isn't working anymore.
Do you know where i can find the solution for this question.
Thanks
User | Count |
---|---|
70 | |
70 | |
34 | |
23 | |
22 |
User | Count |
---|---|
96 | |
94 | |
50 | |
42 | |
40 |