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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
PowerBIspeed
Frequent Visitor

Conditional formating based on two columns in differant tables.

Hi,

I want rows to turn red when two columns in a report are not equal.

These are two columns wich are both in a dfferant table.

I tryed several things but its not working. 

I doesnt matter for me if the whole row or just one cell in the row turns red.

Thank you in advance.

1 ACCEPTED SOLUTION
arichard19
Resolver I
Resolver I

I would suggest trying following -

Create a measure where you substract Column[1] from Column[2]
-
Column Difference = Column[1] - Column[2]
-
Then, you will want to apply conditional formating based on the above Column Difference Measure.

If the Column Difference is different from 0, the conditional formatting should be red
-

Colour Project =
VAR Diff = ColumnDifference
RETURN IF(Column Difference <> 0, "#40E0D0", "#FFA07A")

Apply the measure as such ->
 
arichard19_2-1657181749627.png

 


 

View solution in original post

3 REPLIES 3
PowerBIspeed
Frequent Visitor

@arichard19 This was the most usable solution for me.  Thanks for this.

Anonymous
Not applicable

Hi @PowerBIspeed ,

 

Conditional formatting is relative to the field, if you want to change the color of the entire row, you need to apply conditional formatting to all fields.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

arichard19
Resolver I
Resolver I

I would suggest trying following -

Create a measure where you substract Column[1] from Column[2]
-
Column Difference = Column[1] - Column[2]
-
Then, you will want to apply conditional formating based on the above Column Difference Measure.

If the Column Difference is different from 0, the conditional formatting should be red
-

Colour Project =
VAR Diff = ColumnDifference
RETURN IF(Column Difference <> 0, "#40E0D0", "#FFA07A")

Apply the measure as such ->
 
arichard19_2-1657181749627.png

 


 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors