Forum Discussion
Conditional Formatting Duplicate Rows in Table that Adjusts with Filters
What was your implementation?
The example with the name should work if you use a measure in the conditional settings, ie: distinctcount( [name]), and adjust so that hilighting occurs when it is bigger than 1, smaller than 100000
- Anonymous4 years agoNot applicable
I have implemented a calculated column as provided as a solution in this thread:
https://community.powerbi.com/t5/Desktop/Conditional-Formatting-Duplicate-Records-in-Rows/m-p/690739
NameDistinctCount = VAR NameDistinctCount = Table[Name] RETURN CALCULATE( COUNTROWS('Table'), ALL('Table'), Table[Name] = NameDistinctCount )How do I implement this as a measure?
If I used the same code within a measure, I get an error as follows: "A single value for column 'Name# in the table 'Table' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min,max, count, or sum to get a single result."
Seems like an easy fix, I just need to know what it is!
- Gabriel_Walkman4 years agoContinued Contributor
Sorry if I distracted you by talking about a measure. I'd guess you can use that dax column in the conditional formatting options just fine.
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting