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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

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
Anonymous
Not applicable

Hi @Anonymous ,

 

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

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

aj1973
Community Champion
Community Champion

A dummy PBI would help the community to understand your request

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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