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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Kfitzek2022
Frequent Visitor

Duplicate Indicator

Hello,

 

I am trying to create a custom column that will show me any duplicates I have of a part number. I have a data set that has multiple customers with different prices for the same part number. I want to be able to filter down to only those part numbers and leave anything that only has one customer to the side.

 

Any help would be awesome! Thank you!

 

 

1 ACCEPTED SOLUTION

Hi @Kfitzek2022 

try this

create the measure, and put it into the Filter on this visual, then set "is not 1"

countDistinct = CALCULATE(DISTINCTCOUNT('Table'[Customer Name]),ALLEXCEPT('Table','Table'[Part number]))

result

vxiaotang_0-1628589053601.png

 

 

 

Best Regards,

Community Support Team _Tang

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

View solution in original post

3 REPLIES 3
parry2k
Super User
Super User

@Kfitzek2022 it is better if you share sample data and expected resultsRead this post to get your answer quickly.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thank you for the information!

 

I shared some data below. Essentially the idea is that anything below customer 9 would be filtered out of the table since they are unique values, and no other customers have pricing for the part numbers. Whereas customers 1-9 all have different price points for the same part numbers. I want to be able to see those only.

 

Customer NamePart number Current unit price USD 
Customer 11234 $                          559.47
Customer 212345 $                      1,131.17
Customer 31234 $                          410.06
Customer 41234 $                      1,112.48
Customer 512345 $                          569.83
Customer 612345 $                          534.50
Customer 712355 $                          495.00
Customer 812355 $                          406.00
Customer 91234 $                          495.00
Customer 10123 $                            65.04
Customer 11122 $                            79.21
Customer 12124 $                            37.74
Customer 13125 $                            78.48
Customer 14126 $                            61.47
Customer 15127 $                            31.55
Customer 16128 $                            31.15
Customer 17129 $                              1.34
Customer 18130 $                            47.45
Customer 19131 $                            42.44
Customer 20132 $                            34.13
Customer 21133 $                            35.43
Customer 22134 $                            13.94

Hi @Kfitzek2022 

try this

create the measure, and put it into the Filter on this visual, then set "is not 1"

countDistinct = CALCULATE(DISTINCTCOUNT('Table'[Customer Name]),ALLEXCEPT('Table','Table'[Part number]))

result

vxiaotang_0-1628589053601.png

 

 

 

Best Regards,

Community Support Team _Tang

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors