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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DistinctCount not including zeros

Status
Not open for further replies.

jenschmidt

Programmer
Sep 30, 2002
145
US
Good Afternoon! I would like to subtotal a field with a DistinctCount, but I also want the subtotal to ignore the value of null or zero. Currently, when subtotaled, I expected to see a result of 59 and I'm seeing 60 instead. I've tried a few formulas to say only count if <> 0, but nothing has worked so far.

Any ideas?
Thanks!

jennifer.giemza@uwmf.wisc.edu
 
Insert - Running Total. Change the type of summary to Distinct Count. Under Evaluate, select 'Use A Formula' and click the x-2 button. In the formula editor, enter the following:
not(isNull({table.field})) and {table.field} <> 0;
 
Try using a Running Total, and in the Evaluate Use a Formula, insert {table.field} <> 0

Should work.

-k
 
Giemza,

Did you try 'Running total' ? Use a formula for'Evaluate'

not isnull({table.field}) or {table.field} <> 0

kutoose@yahoo.com
 
PERFECT!! Thank you!

jennifer.giemza@uwmf.wisc.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top