Forum Discussion
mmcanelly
Helper II
2 years agoSparkline 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
Super User
2 years agoHi 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