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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
kmilarov
Helper II
Helper II

Compare two columns in two tables and put a background color if does not match

Guys, I have two tables:

Table 1 with columns A, B, C

Table 2 with columns D, E, F

all are text.

And a visualization table listing columns A,B,C,D. 

 

I need to compare columns C and D and if do not match - to set a background color in this cell in column C.

 

Both tables are related via indirect relationship.

 

Thanks 🙂

 

 

2 REPLIES 2
parry2k
Super User
Super User

@kmilarov can you share how these tables are related? What you are referring to indirect relationship. Read this post to get your answer quickly.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

I have 7 tables in the repot. Table 1 is linked to table 3, table 3 to table 5 , table 5 to table 2. (Different columns and data).  That is why PBI sows a message that I cannot link / relate table 1 to table 2 directly since their is a indirect relation. 
But for the the comparison I need  - let's consider both tables are not linked / related. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.