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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
inglexjc
Post Patron
Post Patron

Color code duplicate numbers

Is there a way to color code when a Client ID is showing up more than once in the data?

 

Example

Client NameClient IDCAS_IDAGERemoval Date
Doe, Jane274178131/20/2022
Doe, Jane2741781311/13/2020
Smith, K31517781/17/2023
Smith, K31517787/14/2023
Doe, John28217701162/13/2023
Doe, John28217701165/1/2014
Non, Duplicate5742541410/27/2015

 

So have the Client ID be RED if it's showing in the report more than once.

1 ACCEPTED SOLUTION
NaveenGandhi
Super User
Super User

Hi

 

Below dax should do the job, Add conditional formatting over client id.

Color code =

VAR Check = CALCULATE(count('Table'[Client ID]),ALLEXCEPT('Table','Table'[Client Name]))

RETURN if(Check>1,"RED","")
Screenshot 2024-06-27 203427.png
 
 If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

View solution in original post

1 REPLY 1
NaveenGandhi
Super User
Super User

Hi

 

Below dax should do the job, Add conditional formatting over client id.

Color code =

VAR Check = CALCULATE(count('Table'[Client ID]),ALLEXCEPT('Table','Table'[Client Name]))

RETURN if(Check>1,"RED","")
Screenshot 2024-06-27 203427.png
 
 If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

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