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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply

Identify if the customer has duplicate accounts from different origin and if completed an order

Hello, Team.

I made a table in which I counted how many times a phone number appeared in the same column more than once. These customers signed up using the same phone number but from different origins. Ideally, we need to identify who these customers are, because a customer should only have one profile, regardless of origin. Also, we need to know who has multiple profiles and has completed at least one order on both origins.

Customers table:

Screenshot 2023-02-03 145835.png

The last column on the right is my desired output on Power Bi. 

Your help is much appreciated.

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Andrew_na_lang 
Please refer to attached sample file with the solution

1.png2.png

PHONE NUMBER APPEARED MORE THAN ONCE = 
IF ( 
    COUNTROWS ( 
        CALCULATETABLE (
            'Table',
            ALLEXCEPT ( 'Table', 'Table'[Phone number =] )
        )
    ) > 1,
    "Y",
    "N"
)
NUMBER APPEARED TWICE and COMPLETED AN ORDER ON BOTH = 
IF (
    COUNTROWS ( 
        CALCULATETABLE ( 
            VALUES ( 'Table'[Origin] ),
            ALLEXCEPT ( 'Table', 'Table'[Phone number =] ),
            'Table'[TOTAL ORDER] <> BLANK ( )
        )
    ) > 1,
    "Y",
    "NO"
)

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @Andrew_na_lang 
Please refer to attached sample file with the solution

1.png2.png

PHONE NUMBER APPEARED MORE THAN ONCE = 
IF ( 
    COUNTROWS ( 
        CALCULATETABLE (
            'Table',
            ALLEXCEPT ( 'Table', 'Table'[Phone number =] )
        )
    ) > 1,
    "Y",
    "N"
)
NUMBER APPEARED TWICE and COMPLETED AN ORDER ON BOTH = 
IF (
    COUNTROWS ( 
        CALCULATETABLE ( 
            VALUES ( 'Table'[Origin] ),
            ALLEXCEPT ( 'Table', 'Table'[Phone number =] ),
            'Table'[TOTAL ORDER] <> BLANK ( )
        )
    ) > 1,
    "Y",
    "NO"
)

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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