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

Any way I can sort on a running total? 1

Status
Not open for further replies.

sue1127

Programmer
Jul 10, 2000
88
US
I know that Crystal doesn't allow sorting on running totals because the totals are calculated after the sorting. Is there any way I can get around this? I have a formula that obtains the variance between 2 running totals, and I would like to list them highest to lowest.

Thanks,

Sue
 
Do you need running totals. Can you use a Summary field on a conditional formula, and then use TopN on that.

Or do a variance formula to do the intial calculation on the raw data, a sumamry of your variance, and then TopN/Sort that summary Editor and Publisher of Crystal Clear
 
Thanks for the suggestions. I'll give them a try.

Sue
 
I've tried summarizing, but Crystal won't allow me to do a top N on the variance, just on individual summarized fields
that I use to get the variance(annual budget and ytd spent). I can't do a summary or Top N on the subtraction.

I might be missing something, but I'm kind of stumped right now.

Sue
 
Create a detail-level formula that computes the variance (no summaries involved).

Now sum that formula at any level you wish and apply a TopN / Sort Group operation to those summaries.

Cheers,
- Ido CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Thanks very much. That did the trick.

Sue
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top