I am fairly new to creating variables and having trouble calculating a sum on these because Crystal doesn't let me use the standard Summary tool in this case.
Looking to find a way to create a final Sum based on my 3rd formula below that I don't know how to create.
Crystal doesn't let me make a running total on this either so it would seem I need some other variation of a variable sum or similar...?
Anyone that is understands these a little better that could help would be Greatly Appreciated.
1st Formula @Hitz Works correctly in detail section to validate if an order is considered a "Hit"
local numberVar Hitz;
Hitz := 0;
if Hitz = 0 then
if {ORDERS.ORDER_DATE} >= {?QuoteDate} then Hitz := Hitz + 1
else 0
2nd is Running Total - #ItemHits that counts by item when @Hitz > 0
This also works fine in the group footer to sum the number or hits that item has had.
3rd Formula @TIH Works in same group footer to record it as a 1 showing this item overall has been hit.
numbervar IH;
IH := 0;
if {#ItemHits} > 0 then IH := IH + 1
else 0;
The screen shot below shows the value selected that I would need to total. Currently showing as 1 but should be 2.
Thanks in Advance.
Great minds discuss "Ideas"
Average minds discuss "Events"
Below Average minds discuss "People
Looking to find a way to create a final Sum based on my 3rd formula below that I don't know how to create.
Crystal doesn't let me make a running total on this either so it would seem I need some other variation of a variable sum or similar...?
Anyone that is understands these a little better that could help would be Greatly Appreciated.
1st Formula @Hitz Works correctly in detail section to validate if an order is considered a "Hit"
local numberVar Hitz;
Hitz := 0;
if Hitz = 0 then
if {ORDERS.ORDER_DATE} >= {?QuoteDate} then Hitz := Hitz + 1
else 0
2nd is Running Total - #ItemHits that counts by item when @Hitz > 0
This also works fine in the group footer to sum the number or hits that item has had.
3rd Formula @TIH Works in same group footer to record it as a 1 showing this item overall has been hit.
numbervar IH;
IH := 0;
if {#ItemHits} > 0 then IH := IH + 1
else 0;
The screen shot below shows the value selected that I would need to total. Currently showing as 1 but should be 2.
Thanks in Advance.
Great minds discuss "Ideas"
Average minds discuss "Events"
Below Average minds discuss "People