Forum Discussion
KPI Tabular Editor color switch based on product
- 4 years ago
Hi -
Happy to report by studying an Enterprise DNA sample file, I figured out a switch measure that works for this situation. The variance calculation is based on the specific metric that appears in the table visual.
MTD Var by Metric =VAR CurrentItem = SELECTEDVALUE(Metrics[Metric] )RETURNSWITCH( TRUE(),CurrentItem = "Net MWh", [MTD Var],CurrentItem = "A Steam Klbs", [MTD Reverse Var],CurrentItem = "B Steam Klbs", [MTD Var])By using two difference variance measures; MTD Reverse Var (target - actual) and MTD Var (actual - target) I was able to create the Tabular Editor KPI to display the correct colors using the final measure MTD Var by Measure.Yalan Wu, thanks for the follow-up!
Hi, crainaud ;
Can you share simple files after removing sensitive information? In addition, the desired output result is attached to solve this problem in more detail. The general idea is to use measure to make a conditional format.
Looking forward to your reply!
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi -
Happy to report by studying an Enterprise DNA sample file, I figured out a switch measure that works for this situation. The variance calculation is based on the specific metric that appears in the table visual.
Yalan Wu, thanks for the follow-up!