Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello Community!
Looking for some help if possible. I have attached a PBIX with a sample file.
I have a table of data with customer id (unique) and for each customer id there is a cat name and cat code.
Unfortunately because of the poor nature of the data I have cat names with different cat codes. For instance cat name = A has 2 codes 10000 & 10001
What i am trying to do is calculate the percentage of cat names that have multiple codes.
So for this data set the % should be 57.1%... thats 4 cat names which have multiple codes / 7 distinct cat names
Cheers
A
Duplicate Cat Codes = if( CALCULATE(COUNT('Table'[Cust_ID]),ALLEXCEPT('Table','Table'[Cat_Name]))>1,1,0)
Regards,
Ritesh
Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users
Sorry to miss that,
STEP 1
Duplicate Cat Codes = if( CALCULATE(COUNT('Table'[Cust_ID]),ALLEXCEPT('Table','Table'[Cat_Name]))>1,1,0)
STEP 2
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 11 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 30 | |
| 19 | |
| 12 | |
| 11 |