Forum Discussion
mmcanelly
2 years agoHelper II
Sparkline for Dynamic Measure
I have a table of dynamic measures where I want to add a sparkline for each. The table looks something like this: Metric Name Value Metric 1 $150,000 Metric 2 4.5% Metric 3 6.0% ...
- 2 years ago
Hi mmcanelly
Please update the formula to :
Metric Total2 =VAR SelectedMetric = SELECTEDVALUE (Metrics[Metric Name])RETURNif (ISBLANK(SelectedMetric),"",SWITCH(SelectedMetric,"Def $",[Total Def $],"CCIR",[CCIR],"QER",[QER]))Result :Modified pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other
members find it more quickly
Ritaf1983
2 years agoSuper User
Hi mmcanelly
Please update the formula to :
Metric Total2 =
VAR SelectedMetric = SELECTEDVALUE (Metrics[Metric Name])
RETURN
if (ISBLANK(SelectedMetric),"",
SWITCH(SelectedMetric,
"Def $",[Total Def $],
"CCIR",[CCIR],
"QER",[QER]))
Result :
Modified pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other
members find it more quickly