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
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
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 Fabric 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.