Forum Discussion
ROG
3 years agoResponsive Resident
Custom KPI Color in a Power BI
Hi all,
I have created the three KPIs below, so I can apply some condition formatting as per below.
KPI colourGreen SIMO&PP = IF([KPI Var SIMO&PP] >=0, 1,0)
KPI colourRed SIMO&PP = IF([KPI Var SIMO&PP] <=0, 1,0)
KPI colourYellow SIMO&PP = IF([KPI Var SIMO&PP] >=0 && IF([KPI Var SIMO&PP] >=0,1,0))
Logic:
I added the green and red metrcis into a pie chart, and then on the color formatting, I added the correspondent color as you can see below.
| GREEN | On target or above Budget |
| YELLOW | Between -5% and 0% variance to budget / timing related variance |
| RED | More than 5% variance to Budget |
I added the green and red metrcis into a pie chart, and then on the color formatting, I added the correspondent color as you can see below.
It works, but the yellow metric is incorrect. Could you please, help em with this one?
Thank you!
- Hope this helpsKPI colourGreen SIMO&PP = IF([KPI Var SIMO&PP] >0.05, 1,0)KPI colourRed SIMO&PP = IF([KPI Var SIMO&PP] <-0.05, 1,0)KPI colourYellow SIMO&PP = IF([KPI Var SIMO&PP] >=-0.05 &&[KPI Var SIMO&PP] <=0.05 ,1,0)
1 Reply
- PadycosmosSolution SageHope this helpsKPI colourGreen SIMO&PP = IF([KPI Var SIMO&PP] >0.05, 1,0)KPI colourRed SIMO&PP = IF([KPI Var SIMO&PP] <-0.05, 1,0)KPI colourYellow SIMO&PP = IF([KPI Var SIMO&PP] >=-0.05 &&[KPI Var SIMO&PP] <=0.05 ,1,0)