Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello,
I'm trying to create a Measure, which calculation should be dynamically impacted based on a column value.
To illustrate, here's the "default" mesure I'm using:
Measure = CALCULATE(sum(AllWorkItems[Effort]),AllWorkItems[State]="Done")
Solved! Go to Solution.
In which context do you want your measure? Can you please make this more clear for me, please?
You can try this:
Measure = IF(MAX('Table'[Wi])="Bug",CALCULATE(sum('Table'[Effort]),'Table'[State]="Done")+100,CALCULATE(sum('Table'[Effort]),'Table'[State]="Done"))
Proud to be a Super User!
In which context do you want your measure? Can you please make this more clear for me, please?
You can try this:
Measure = IF(MAX('Table'[Wi])="Bug",CALCULATE(sum('Table'[Effort]),'Table'[State]="Done")+100,CALCULATE(sum('Table'[Effort]),'Table'[State]="Done"))
Proud to be a Super User!
Works like a charm, thank you so much!! 😊
Do you have some example data?
Proud to be a Super User!
Use a VAR and RETURN construct:
Mymeasure =
Var _firstmeasure = CALCULATE(sum(AllWorkItems[Effort]),AllWorkItems[State]="Done")
Var *The WI BUG*
Return iif()
Proud to be a Super User!
Thank you for the proposition but var WIbug = AllWorkItems[WI] = "Bug" is probably what bothers me since the begining. As WI is a string value, I'm always gettig a "cannot find name" kind of error.
Maybe this is how I should have put the question: how can we manipulate strings in a measure?
User | Count |
---|---|
91 | |
73 | |
68 | |
63 | |
55 |
User | Count |
---|---|
99 | |
88 | |
73 | |
60 | |
58 |