Forum Discussion
bvanevr
8 years agoAdvocate II
Count duplicates with having constraint
I am working with data quality visualization and trying to count for duplicates with a filter and not seeing how to accomplish. Below is some made up data that should help explain issue: Bran...
- 8 years ago
Try This Calculated Column
Duplicates = VAR mycount = CALCULATE ( DISTINCTCOUNT ( TableName[surrogate] ), ALLEXCEPT ( TableName, TableName[Parent] ) ) RETURN IF ( TableName[Brand] = "ST", IF ( mycount = 1, "Pass", "Failure" ), "N/A" )
Zubair_Muhammad
8 years agoCommunity Champion
bvanevr
8 years agoAdvocate II
You rock man.
I did not realize you could put a formula like that as a VAR. It also does not impact user experience.