Forum Discussion

NicPbi's avatar
NicPbi
Regular Visitor
3 years ago

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

  • v-zhangti's avatar
    v-zhangti
    Icon for Community Support rankCommunity Support

    Hi, NicPbi 

     

    You can try the following methods.

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

    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.

  • NicPbi's avatar
    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.

    • v-zhangti's avatar
      v-zhangti
      Icon for Community Support rankCommunity Support

      Hi, NicPbi 

       

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

       

      Best Regards