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 August 31st. Request your voucher.

Reply
debasish
New Member

How to calculate duplicate based on different column

Hi All,

 

I am new in Power BI and wanted to know how can I calculate duplicate in below situation.

 

NumberAssignment groupParent
1AXYZ
2BXYZ
3AXYZ

 

In this cases I want if Assignment group is different but parent is same then it will treat as a duplicate. So here 1 records we can consider duplicate.

 

Apprecaite any one of your help

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @debasish ,

 

We can update the measure.

Record = COUNTROWS( DISTINCT(SELECTCOLUMNS('Table',"parent",[Parent],"group",[Assignment group])))

vtangjiemsft_0-1705455562766.png

If the above one can't help you get the desired result, please provide your expected result with backend logic.

 

Best Regards,

Neeko Tang

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

3 REPLIES 3
Anonymous
Not applicable

Hi @debasish ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create a measure. 

Record = DISTINCTCOUNT('Table'[Parent])

(3) Then the result is as follows.

vtangjiemsft_0-1704768642240.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

Hi,

 

Thanks for your reply but that solution not going to work as your doing disticnt only in one column. Let me tell my requirment once again.

 

NumberAssignment groupParent
1AXYZ
2BXYZ
3AXYZ

 

Based on the above table either 1 & 2 consider as double or 2 & 3 consider as double. Not 1 & 3

 

 

 

Anonymous
Not applicable

Hi @debasish ,

 

We can update the measure.

Record = COUNTROWS( DISTINCT(SELECTCOLUMNS('Table',"parent",[Parent],"group",[Assignment group])))

vtangjiemsft_0-1705455562766.png

If the above one can't help you get the desired result, please provide your expected result with backend logic.

 

Best Regards,

Neeko Tang

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

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.