Forum Discussion
Highlighting duplicated values in table visual in Power BI
- 5 years agoRowcount : =IF (COUNTROWS (CALCULATETABLE ('Table',ALLSELECTED ( 'Table' ),VALUES ( 'Table'[Customer] ))) = 1,0,1)
I would like to thank you a lot for your answer.
By the way, is it possible to make it highlight the duplicates of different customers with different colors? For example, the duplicates of A will be blue, and the duplicates of B will be pink.
- Anonymous5 years agoNot applicable
Jihwan_Kim
Do we have a method that we don't have to create another column to assign color for each customer? Can we just use some randomized colors that are different?- Jihwan_Kim5 years ago
Super User
Hi,
Thanks for your feedback.
In my opinion, if the 'Customers' table in your model has a primary key column ( for example, ID column) that identifies each customer, then I think you can use that column to assign the random-color for each customer. If you do not have an ID column, then you can try to use the customer name to give a unique number to each customer, then you can use that unique number to assign a random-color for each customer.