Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excluding null values when executing distinctcount

Common Formulas

Excluding null values when executing distinctcount

by  dataprincess  Posted    (Edited  )
Created a formula called @Null with absolutely nothing in it and refer to it in your formula. It works! Don't know why but it does.

FuncPass:
if {v_Detail_Report.TestType}="Functional" and {v_Detail_Report.EX}="PP"
then {v_Detail_Report.SerialNumber} else {@null}

From Ken Hamady http://www.kenhamady.com/
When I tried it the formula that referring to {@null} errored, saying that it needed a string. So I put in "", saved the other formula, and then took the "" back out.

And, son of a gun, it worked.
That is pretty cool.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top