Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I have a field of data containing various results ranging from 0 - 10000, I was to write an expression that calculates the % of nils per month.
EG, count all the 0's in the month and divide by the total number of results.
So 0, 0, 0, 1, 1, 2, 2, 3, 4, 5 would equal 30%.
Thank you
count( {<SomeField={0}>} SomeField) / count(SomeField)
Doesn't seem to work??
count( if(SomeField=0), SomeField) / count(SomeField)
HI
TRY THIS
=COUNT({ <F1={'0'}> }F1)/COUNT(F1)
or
sum(if(Field=0,1,0)) / count(Field)