Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I have a dataset with IDs. I want to count how many times different IDs appear more than X times. That is "how many times do we have IDs with more than X occurances")
I found this code, but it gives way too big counts
Count(Distinct
Aggr(
If(Count(TOTAL distinct PID) > 10, PID),
PID
)
)
Hello,
Try something like :
Sum(Aggr(if(count(ID) > X,1,0), ID))
Let me know if it works.
Regards
Hello,
Try something like :
Sum(Aggr(if(count(ID) > X,1,0), ID))
Let me know if it works.
Regards
Thank you!! It works... I had to add year in the code to make it per year too (wasn't part of my question), but that worked too!