Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

variance with negative and postive KPI

hi

 

I have the scnerio that i need show the KPI of variance % having anything less than -10% is red and from -10 to 10 is green and again anything beyond 10 is again red . Is this possible to show in paypay KPI visual .

 

and i have another scnerio also

 

-10 to -5 yellow

<-10 is red

-5 to 0 is green

 

from +ve scale

0 to 5 green

5 to 10 yellow

>10 red

 

Is this possible scnerio to show for variance % value in any KPI visual? 

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

As tested, it is impossible to achieve this goal in the default KPI visual.

I can work with some other method.

Import "Card with States by OKViz" from market place,

create measures 

v = (SUM(Sheet5[indicator])-SUM(Sheet5[goal]))/SUM(Sheet5[goal])

condition = IF([v]<-0.1||[v]>0.1,1,2)

variance = "("&100*[v]&"%"&")"

4.png

 

Turn off "Distance" under "Goals" option for the "KPI" visual.

Move ""Card with States by OKViz"  visual on the "KPI" visual as above.

As for your other scenario, please change the measure[condition] to play.

See details in my pbix.

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.