Forum Discussion
Finding Duplicate Names with Different Status
- Anonymous6 years ago
Hi Anonymous ,
Create a measure like below and add it to visual filter then configure the condition formatting like below.
Measure = CALCULATE(DISTINCTCOUNT('Table'[Status]),ALLEXCEPT('Table','Table'[Name]))Result would be shown as below.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous
You can create a new table:
Converted =
FILTER (
DISTINCT ( Table1[Name] );
VAR LastDate_ =
CALCULATE ( MAX ( Table1[Hire Date] ) )
VAR IsFTEOnLastDate_ =
CALCULATE (
COUNT ( Table1[Hire Date] );
Table1[Hire Date] = LastDate_;
Table1[Status] = "FTE"
) > 0
VAR WasPreviouslyContractor_ =
CALCULATE (
COUNT ( Table1[Hire Date] );
Table1[Hire Date] <= LastDate_;
Table1[Status] = "Contractor"
) > 0
RETURN
AND ( IsFTEOnLastDate_; WasPreviouslyContractor_ )
)
where Table1 is the table you show
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers
- Anonymous6 years agoNot applicable
- AlB6 years agoCommunity Champion
You need to use the name of your table in lieu of Table1 and perhaps commas instead of ";" depending on your locale
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers
- AlB6 years agoCommunity Champion
See it at work in the attached file
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers