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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

duplicate rows found in a table based on one column for different group

Hi , 

             Based on below data , i want to check whether any source (A) policy number  can be found in source (B)

for each date_run group .

 

Screenshot 2024-06-20 095748.png

I need an output like below. here main thing is last two rows for source B having duplicate policy number rows ,that one i did not included in duplicate because that policy number was repeated only  in source B not in B.

please help for solve this problem

Screenshot 2024-06-20 100515.png

1 REPLY 1
VahidDM
Super User
Super User

Hi @Anonymous 

 

The last B rows are same but there is a similar row with source A which needs to change the dulp to Yes not No(Check this).

 

BTW, try this DAX to add a calculated column:

dupl = 
IF (
    MAXX (
        CALCULATETABLE (
            SUMMARIZE ( 'Table', 'Table'[policy], "CSD", DISTINCTCOUNT ( 'Table'[source] ) ),
            REMOVEFILTERS ( 'Table'[source], 'Table'[date_run] )
        ),
        [CSD]
    ) > 1,
    "Yes",
    "No"
)

 

output:

VahidDM_0-1718871533506.png

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!! 

LinkedIn|Twitter|Blog |YouTube 

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.

Top Solution Authors