Forum Discussion
Anonymous
4 years agoNot applicable
Count if two columns are equal and a third not
Hi everyone! My goal is to count the tickets that reopen for the same reason. But I have duplicates because of the granularity of the table so I cannot count these records. In order to do that I ...
Samarth_18
Community Champion
4 years agoHi Anonymous ,
You can create a column with below code and use it as filter on your visual:-
Column =
VAR result =
COUNTROWS (
FILTER (
ALL ( 'Table' ),
'Table'[idclient] = EARLIER ( 'Table'[idclient] )
&& 'Table'[idticket] = EARLIER ( 'Table'[idticket] )
&& 'Table'[Date_time] < EARLIER ( 'Table'[Date_time] )
)
)
RETURN
IF ( result <> 0, 1, 0 )
Output:-
Updated file below:-
Thanks,
Samarth