Forum Discussion
Anonymous
4 years agoNot applicable
count rows with some conditions
Hi everyone! I need to count the rows with same idticket, idclient after the first time that they appear. I also have to exclude duplicates so I only have to count once these records. The result is ...
Anonymous
4 years agoNot applicable
I know johnt75 , I didn't replace it. I used it as a filter. What I was trying to do is display the total for each client and the total for all in a table. That's why I said that if you tried to do with the calculated column the duplicates appear because they also have 1 in the condition.
johnt75
Super User
4 years agoYou may be able to get rid of the duplicates if you replace the ALL('Table') with
CALCULATETABLE( SUMMARIZE( 'Table', 'Table'[idclient], 'Table'[idticket], 'Table'[Date_time]),
REMOVEFILTERS( 'Table' )
)