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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
NicPbi
Regular Visitor

Anominising data but including duplicated data

I need to anominise data in a table but some data is repeated numerous times in the same column to report on how many occasions something has happened. 

For example, the report created shows how many times a certain Reg number is recorded. Some reg numbers only appear once, many appear multiple times. How do I anonimise the data so the repeated Reg numbers are anonimised in the exact same way so repeat occurances are still reported.

Hope this makes sense & appreciate your help!

 

Reg numberDateCompany
AA12VYT01-FebAA
BB67HGF01-MarBB
JJ09DSW02-JanCC
RR09WSD01-JunDD
RR09WSD09-JanEE
RR09WSD15-FebFF
RR09WSD18-AugGG
BB67HGF31-MayHH
BB67HGF01-AprII
BB67HGF24-AprJJ
BB67HGF15-JunKK
BB67HGF23-JulLL
3 REPLIES 3
NicPbi
Regular Visitor

No unfortunately not as I would want to report on certain reg numbers & how many times they repeated whereas in this instant using counts would have many counts for the same value.

Hi, @NicPbi 

 

Based on the data you provided, what would you expect the output to be?

 

Best Regards

v-zhangti
Community Support
Community Support

Hi, @NicPbi 

 

You can try the following methods.

Count = CALCULATE(COUNT('Table'[Reg number]),ALLEXCEPT('Table','Table'[Reg number]))

vzhangti_0-1692840712924.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors