Forum Discussion
Conditional Formatting Duplicate Rows in Table that Adjusts with Filters
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!
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