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
mmcanelly
2 years agoHelper II
Hi Ritaf1983 ,
Here's a link to the dummy pbix file: https://drive.google.com/file/d/1_JmmZAI7K61bTAIdDOvpyS29oMu7tVDR/view?usp=drive_link. On the visual, the table on the right is the one I'm trying to get working but the sparkline is showing up as blank. The intent is to have the sparkline for each corresponding metric be the only one shown in that row (so only the ones highlighted in the attached screenshot).