I suppose your solution might seem simple to people who understand variables, but not being one of them (or at least only slowly learning), I thought it was very cool. But--I think you forgot the "whileprintingrecords;" at the beginning of the details formula, no?
Since you have a running total you could also add a regular grand total (Count) and then write a formula that will subtract the RT from the regular total to get your reverse count. Probably have to add 1 to the result to make it work.
Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Expert's Guide to Formulas / Guide to Crystal in VB
Okay...I sort of figured out why the formula wasn't working. I'm HIDING the detail, and when I double click on the group to open the detail, it fails to calculate in reverse order. If I show ONLY the details section and hide the groups, the formula works. When I drill down from the groups, it doesn't. What gives?
Moving the first formula from the report header to the group header worked.
{@Flag} is either a zero or one based on a criteria I setup. I originally created the running total because I need the count to reset when the @flag=0. Currently, that part doesn't work since I had to get rid of the running total. As it is now, I get the total to count down in reverse, but it's not resetting.
OK, so you don't want the count per group, it's all based on the nebulous @flag, please share the formula for @flag, since that is the key to everything.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.