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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Conditional Formatting based on three text fields

Hi,

 

I am validating data from 3 different systems. I want to make a table like the example below where I can see for each row in the dimension where they are different, like:

- Which one is different from the other two

- If all three are dfferent

 

See below for example:

Xilitor01_0-1649324818345.png

(the Date in SystemX is a text field)

 

I hope someone can help or give inspiration 🙂

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Yes I can,

I have added three columns to determine if an column should get a background color. 

These are the formulas:

conditional1 = if(and(Example[System1]<>Example[System2],Example[System1]<>Example[System3]),1,0)
conditional2 = if(and(Example[System2]<>Example[System1],Example[System2]<>Example[System3]),1,0)
conditional3 = if(and(Example[System3]<>Example[System1],Example[System3]<>Example[System2]),1,0)
It gives you the following result:
PandaHans17_0-1649330843670.png


If a conditional 1 is 1 then you can choose a background color for system 1 etc.

View solution in original post

6 REPLIES 6
CNENFRNL
Community Champion
Community Champion

Fairly simple task in Excel,

CNENFRNL_0-1649327729708.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Anonymous
Not applicable

Hi,

The Excel I posted was just an example of how I wanted it to look like.

Do you have an idea to replicate that in PowerBI?

Anonymous
Not applicable

Hey Xilitor!

I was thinking of creating an extra column where you determine if:
 - Column 1 is different then 2 and 3
- Column 2 is different then 1 and 3
- Column 3 is different then 1 and 2
- All columns are different.

Then, based on that new column you can apply conditional formatting. 

Is this something you can work with?

Anonymous
Not applicable

Can you elaborate a bit more on that?

Anonymous
Not applicable

Yes I can,

I have added three columns to determine if an column should get a background color. 

These are the formulas:

conditional1 = if(and(Example[System1]<>Example[System2],Example[System1]<>Example[System3]),1,0)
conditional2 = if(and(Example[System2]<>Example[System1],Example[System2]<>Example[System3]),1,0)
conditional3 = if(and(Example[System3]<>Example[System1],Example[System3]<>Example[System2]),1,0)
It gives you the following result:
PandaHans17_0-1649330843670.png


If a conditional 1 is 1 then you can choose a background color for system 1 etc.

Anonymous
Not applicable

Thank you! It works! 🙂

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.