Forum Discussion
viralpatel21
Helper II
3 years agoFind Unique and Duplicate Values Count in Power BI Based on Multiple Conditions
Hello I am trying to create the column "dentifying" to calculate duplicates based on Multiple conditions.. i.e. e.g. if the name has a duplicate but the match status has has "monitored" an...
- Anonymous3 years ago
Hi @Raghu26 ,
You can create a calculated column as below to get it, please find the details in the attachment.
Identifying = VAR _count = CALCULATE ( DISTINCTCOUNT ( 'Table'[Match status] ), FILTER ( 'Table', 'Table'[Name] = EARLIER ( 'Table'[Name] ) && 'Table'[Match status] IN { "Monitored", "Unmonitored" } ) ) RETURN IF ( _count > 1, "yes", "no" )Best Regards
Anonymous
3 years agoNot applicable
Hi @Raghu26 ,
You can create a calculated column as below to get it, please find the details in the attachment.
Identifying =
VAR _count =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Match status] ),
FILTER (
'Table',
'Table'[Name] = EARLIER ( 'Table'[Name] )
&& 'Table'[Match status] IN { "Monitored", "Unmonitored" }
)
)
RETURN
IF ( _count > 1, "yes", "no" )
Best Regards
viralpatel21
Helper II
3 years agoThank you so much!!! it worked brilliantly!!