Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
jorditorras
Creator
Creator

Count records <> 0

Dear Gurus,

I'm trying to calculate a Total of different values excluding Null. In the example below, as there are 3 different Quotations Codes, I'd like to calculate a Total of Quotations = 3.

CompanyQuotation CodeQuotations Counter
A01RMX02421
A01RMX02421
A01RMX02421
A01RMT99421
A01RMT99421
A01XXX45441
A010
A010

Total Quotations Counter = 3

Any idea of how I can get this? If I use the formula Count(Distinct([Quotation Number])) the result is 4 as it is counting also "null" value.

Thanks in advance!

Regards,

Jordi

1 Solution

Accepted Solutions
YoussefBelloum
Champion
Champion

Hi,

try this:

Count(Distinct {<[Quotation Number]={"=len(trim([Quotation Number]))<>0"}>}[Quotation Number])

View solution in original post

5 Replies
YoussefBelloum
Champion
Champion

Hi,

try this:

Count(Distinct {<[Quotation Number]={"=len(trim([Quotation Number]))<>0"}>}[Quotation Number])

Anonymous
Not applicable

try this

Count(Distinct {<[Quotation Counter]={">0"}>} [Quotation Number])


jorditorras
Creator
Creator
Author

This is working. Thanks Youssef!!

YoussefBelloum
Champion
Champion

you're welcome

don't forget to close the thread

jorditorras
Creator
Creator
Author

This solution is also countg nuls. But thanks anyway!!