Forum Discussion
kevlin79
7 years agoRegular Visitor
Find irregular pairs
I have a data setup where row values in two columns are expected to match but want to identify instances where there is an "irregularity". So in the following table: "1 - Joe" is such a case since th...
- 7 years ago
My apologies.I had to go out after my previous post
Try this Column in this situation.
File attached as fell
Column 2 = VAR DistinctCount_Identifiers = CALCULATE ( DISTINCTCOUNT ( Table1[Identifier] ), ALLEXCEPT ( Table1, Table1[Name] ) ) VAR Count_Identifiers = CALCULATE ( COUNT ( Table1[Identifier] ), ALLEXCEPT ( Table1, Table1[Name] ) ) RETURN IF ( AND ( DistinctCount_Identifiers > 1, DistinctCount_Identifiers <> Count_Identifiers ), "I am Irregular" )
Zubair_Muhammad
7 years agoCommunity Champion
kevlin79
7 years agoRegular Visitor
Seems to work! If I also wanted the pair "2 - Joe" to be marked as part of the irregulars, how would the code be adjusted to this?
Super thanks