I have a report that displays data daily for each month. In the group footer, the data is summarized. Some of the days have 0 data and most of data > 0. I like to count the number of days that consist of data > 0. I tried numerous formulas wihout success. An example:
whileprintingrecords;
numbervar countdays;
if Sum ({@Pax01},{TRIP_MAIN_OPS.INBOUND_OUTBOUND}) > 0 then
countdays:= count ({@Pax01})
else if Sum ({@Pax02},{TRIP_MAIN_OPS.INBOUND_OUTBOUND}) > 0 then
countdays:= count ({@Pax02})
else if Sum ({@Pax03},{TRIP_MAIN_OPS.INBOUND_OUTBOUND}) > 0 then
countdays:= count ({@Pax03})
else if Sum ({@Pax04},{TRIP_MAIN_OPS.INBOUND_OUTBOUND}) > 0 then
countdays:= count ({@Pax04})
else
0... so on....
Any assistance is greatly appreciated
whileprintingrecords;
numbervar countdays;
if Sum ({@Pax01},{TRIP_MAIN_OPS.INBOUND_OUTBOUND}) > 0 then
countdays:= count ({@Pax01})
else if Sum ({@Pax02},{TRIP_MAIN_OPS.INBOUND_OUTBOUND}) > 0 then
countdays:= count ({@Pax02})
else if Sum ({@Pax03},{TRIP_MAIN_OPS.INBOUND_OUTBOUND}) > 0 then
countdays:= count ({@Pax03})
else if Sum ({@Pax04},{TRIP_MAIN_OPS.INBOUND_OUTBOUND}) > 0 then
countdays:= count ({@Pax04})
else
0... so on....
Any assistance is greatly appreciated