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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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