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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
liapimentaa
New Member

Cross valiadation between two tables

Hello!

 

I need help 😞

I have two tables. One with data with errors (let's call it table 1) (typos, mostly) and another with the correct information (table 2). I need to make a cross validation between the two tables, and when a value is table 1 is not on table 2, flag it (I tried with conditional formating, but it didn't work). 

Does anyone have any suggestions?

 

 

Thank you in advanced! 🙂

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @liapimentaa ,

If you need to check the upper and lower case of a word's letters, try a merge query in Power query:

vcgaomsft_0-1705634049017.png

then crate a new measure like:

Measure = IF(ISBLANK(COUNT(Table1[Column1.1])),"yellow")

and use it as a background condition:

vcgaomsft_2-1705634167427.png
If you don't need to check the case of letters, you can try this one:

Measure = 
VAR _cur_value = SELECTEDVALUE('Table1'[Column1])
VAR _count = CALCULATE(COUNTROWS('Table2'),'Table2'[Column1]=_cur_value)
VAR _result = IF(ISBLANK(_count),"yellow")
RETURN
_result

vcgaomsft_3-1705634911654.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @liapimentaa ,

If you need to check the upper and lower case of a word's letters, try a merge query in Power query:

vcgaomsft_0-1705634049017.png

then crate a new measure like:

Measure = IF(ISBLANK(COUNT(Table1[Column1.1])),"yellow")

and use it as a background condition:

vcgaomsft_2-1705634167427.png
If you don't need to check the case of letters, you can try this one:

Measure = 
VAR _cur_value = SELECTEDVALUE('Table1'[Column1])
VAR _count = CALCULATE(COUNTROWS('Table2'),'Table2'[Column1]=_cur_value)
VAR _result = IF(ISBLANK(_count),"yellow")
RETURN
_result

vcgaomsft_3-1705634911654.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.