Forum Discussion

mmcanelly's avatar
mmcanelly
Helper II
2 years ago
Solved

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% ...
  • Ritaf1983's avatar
    Ritaf1983
    2 years ago

    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