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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
DennisNilsson
Frequent Visitor

Find non-duplicates/compare to columns to return non-duplicates

Hey, I have two columns i wish to compare, from two different tables. 

Both columns are text and I would like a formula to return all non-duplicates. 

 

First column is basically customer names from an old system, second column is customer names from the new system. I know that not all customers from the old system are yet registrered in the new system.

Therefore I would like to create a visual displaying the names of customers not yet registrered in the new system.

 

It would be perfect for me if this could be done with a DAX expression so that the visual would get updated once I refresh the data.

 

Anyone that could help me?

1 ACCEPTED SOLUTION

Hi @DennisNilsson,

 

non duplicate =
EXCEPT (
    CALCULATETABLE (
        VALUES ( 'Old system'[Old customer name] ),
        'Old system'[Active] = 1
    ),
    VALUES ( 'New system'[New customer name] )
)

Best regards,

Yuliana Gu

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

View solution in original post

6 REPLIES 6
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @DennisNilsson,

 

Please new a calculated table with below DAX formula:

non duplicate = EXCEPT(VALUES('Old system'[Old customer name]),VALUES('New system'[New customer name]))

 

Then, you can use a table visual to display above returned data.

 

Best regards,

Yuliana Gu

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

Thank you @v-yulgu-msft, this works well!

Is there also a way to only return results where Active field in Old system table = 1?

Hi @DennisNilsson,

 

non duplicate =
EXCEPT (
    CALCULATETABLE (
        VALUES ( 'Old system'[Old customer name] ),
        'Old system'[Active] = 1
    ),
    VALUES ( 'New system'[New customer name] )
)

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Community Champion
Community Champion

Perhaps:

 

Column = IF([OldName] = [NewName],BLANK(),[NewName])


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

"IF(
[Name] = Portals[Name],
BLANK (),
Portals[Name]) "

 

returns: Expression.Error: The name "IF" wasn't recognized. Make sure it's spelled correctly.

Thank you @Greg_Deckler, problem is however that the logical test part of the IF function can only find measures? I need it to refer to a "normal column" or field if you wish.  Is that possible?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.