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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Compare duplicates with another column

Hello everyone

I am new to power BI and I would like to help me in this consultation. I have the following table:

eduvale011_0-1679525096168.png

to which I need to do the following validation:

- identify the rows with duplicate data in the field "Data 2"

- check if of these identified rows, the data in the "Data 1" field are the same

- if they are equal, place "OK" in the "Result" field

- if there are differences, place "fail" in the "Result" field

The result would be something like this:

eduvale011_1-1679525194003.png

Thank you for your help!

5 REPLIES 5
Ahmedx
Super User
Super User

try to write like this.
BUT of course it will be better if you first remove the spaces in the power query.
Screen Capture #738.png

Syndicate_Admin
Administrator
Administrator

Ahmedx, an additional query, in my table, in the fields data 1 and data 2, there may be gaps. I have noticed that he still considers them as "failure", there is a way that he does not consider them and instead, also indicate "OK"?

Thank you!! You're helping me a lot.

Ahmedx
Super User
Super User


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.

Syndicate_Admin
Administrator
Administrator

Ahmedx, thank you very much! It worked perfect...!

Ahmedx
Super User
Super User

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
https://1drv.ms/u/s!AiUZ0Ws7G26RhlkvVbyABYL0RfUO?e=zoYBzR
Screen Capture #731.png

Helpful resources

Announcements
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!

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.