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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Ragnarock1982
Frequent Visitor

Conditional formatting

Happy new year datanuts!

 

I have a question...

 

When using a matrix, is it possible to have conditional formatting based on values in two columns? I'll try my best to explain...

 

For example:

 

Row column    Value 1    Value 2

Row 1               10            11

Row 2               9              12

Row 3               15            30

 

I would like the 'Value 1' of 'Row 2'  ..  (9).. to show in red, as the actual value is lower than the 'Value 2' of that same row.

 

I tried using the conditional formatting option, but could not find a way for it to work.

 

Thanks,

1 ACCEPTED SOLUTION
AnkitBI
Solution Sage
Solution Sage

@Ragnarock1982 

One Way to do is to create a calculated column using below formaula. This will return 1,0,-1 based on positve, zero and negative result. Then use this column for Conditional Formatting using Rules.

 

Do share complete data if it doesn't work or your requirement is different.

 

Column = sign(Table5[Value2] - Table5[Value1])

 Regards
AJ
Do Like Post if response seems good and Worth liking.
Do Mark as Solution if response resolved your Issue.

 

View solution in original post

2 REPLIES 2
AnkitBI
Solution Sage
Solution Sage

@Ragnarock1982 

One Way to do is to create a calculated column using below formaula. This will return 1,0,-1 based on positve, zero and negative result. Then use this column for Conditional Formatting using Rules.

 

Do share complete data if it doesn't work or your requirement is different.

 

Column = sign(Table5[Value2] - Table5[Value1])

 Regards
AJ
Do Like Post if response seems good and Worth liking.
Do Mark as Solution if response resolved your Issue.

 

Perfect!

 

Exactly what I needed.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors