cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Compare 2 columns in separate tables (T/F), use conditional formatting to highlight differences

I have 2 tables named Predictions and Actual, both of them have a coloum named Winner. Predictions made by users are stored in the Predictions table and the Actual winner is stored in the Actual table. They have a one-to-one relationship.

The goal is to put these values side by side (both T/F string vales) in a table visual and compare them. I'm hoping to have either a calculated column or a measure which returns true if the values match or false othwewise.

Then we use this calculated value to conditionally format the predictions coloum to highlight the incorrect predictions. 

What i expected to a simple comparison is not looking so simple, anyone come across this issue before? Thanks for your time. 

1 ACCEPTED SOLUTION
Community Support
Community Support

Hi @chris_eluva ,

 

Create measures and conditional formatting as below.

Measure = IF(SELECTEDVALUE(Predictions[winner])=SELECTEDVALUE(Actual[winner]),TRUE(),FALSE())

Measure 2 = IF([Measure]=TRUE(),1,0)

1.PNG

2.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

2 REPLIES 2
Community Support
Community Support

Hi @chris_eluva ,

 

Create measures and conditional formatting as below.

Measure = IF(SELECTEDVALUE(Predictions[winner])=SELECTEDVALUE(Actual[winner]),TRUE(),FALSE())

Measure 2 = IF([Measure]=TRUE(),1,0)

1.PNG

2.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

Memorable Member
Memorable Member

A dummy PBI would help the community to understand your request

Regards
Amine Jerbi
https://www.linkedin.com/in/amine-jerbi-2b3a8928/

Did I answer your question? Mark my post as a solution!

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors