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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Reversed KPI Conditional formatting

Hi everyone,

 

in my Matrix visual i have 5 KPI's. 4 of them are "normal" and one is reversed what means that it's better to have that KPI lower rather than higher. 

How to do conditional formatting with that KPI? All other KPI's show green arrow when they are above value i.e. higher than previous month value, and that reversed KPI should be green if it's under previous month value.

 

In this picture below I need to get these 25,2% to be marked with red arrow.

pbi.png

 

I hope someone can find a solution.

 

Kind Regards

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

You can use measure to format the icon.

e.g

1.Sample data

vxinruzhumsft_0-1677722564437.png

2.The format measure

Measure = var a=CALCULATE(SUM('Table'[KPI]),OFFSET(-1,,ORDERBY('Table'[Month])))
return IF(SUM('Table'[KPI])>a,1,0)

Then put the measure to the conditional formatting

vxinruzhumsft_1-1677722646795.png

 

Output

vxinruzhumsft_2-1677722658017.png

 

The logic is that use measure to find the last month KPI first, then compare it to KPI of the current month 

If the current KPI is less than last month , then set number 1, else 0.

You can refer to the attachment below.

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous 

You can use measure to format the icon.

e.g

1.Sample data

vxinruzhumsft_0-1677722564437.png

2.The format measure

Measure = var a=CALCULATE(SUM('Table'[KPI]),OFFSET(-1,,ORDERBY('Table'[Month])))
return IF(SUM('Table'[KPI])>a,1,0)

Then put the measure to the conditional formatting

vxinruzhumsft_1-1677722646795.png

 

Output

vxinruzhumsft_2-1677722658017.png

 

The logic is that use measure to find the last month KPI first, then compare it to KPI of the current month 

If the current KPI is less than last month , then set number 1, else 0.

You can refer to the attachment below.

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.