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

Sort based on two formulas

Status
Not open for further replies.

bpunc

Technical User
Oct 30, 2001
5
US
I have the following:
FormulaA - numeric field
FormulaB - numeric field

I take the subtotals of FormulaA and FormulaB and divide it (i.e., A/B) to create FormulaC.

Now, I want to sort FormulaC (based on subtotals) but I can't. The "Sum of FormulaC" is not listed in the TopN/Sort Group Expert.

Is there an alternative to do this?
Thanks in advance!

 
You can only TopN on Summaries and you can't summarize formula C because it is based on Sums. I don't see how you can do this in CR. Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
Ken is correct. It has to be a summary or subtotal to be a TopN.

Is a TopN of Formual A going to give you the corect sequence. I suspect not.

The only solution I can see is to do your summary in the database via a View or Stored proc and then use that as the source to your report. Editor of Crystal Clear
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top