Solved

sorting records based on sum field

Posted on 2008-10-31
6
321 Views
Last Modified: 2012-05-05
Hi Experts,
I'd like sort records by sum field.
My sum filed was created based on subreport.
Formula for sum field in main report:
WhilePrintingRecords;
Shared NumberVar SubValue1;
{@sum backlog}-SubValue1;
, working good.
Now I need sort all records in report base on above sum field in descending order.
I tried create group base on this sum field but I cannot do that. I don't see this field in existing report fields if I try create group.
any ideas ?
henry
0
Comment
Question by:henryk123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Expert Comment

by:_MAGIK_
ID: 22854596
Try this

Open the report
Click REPORT --> GROUP SORT EXPERT
Choose the GROUP
IN the dropdown FOR THIS GROUP SORT
Choose ALL
In the BASED ON choose the summary
0
 

Author Comment

by:henryk123
ID: 22854621
I tried this.
I don't see my formula field in list.  I cannot choose. I have no idea why.
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 250 total points
ID: 22860190
You won't be able to sort on that formula.  It is printing pass formula which is after the sorting is done.

Since it has a shared variable it will always be a print time formula.

mlmcc
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 23

Assisted Solution

by:Ido Millet
Ido Millet earned 250 total points
ID: 22861551
Your only option is to prepare the summary value in a command, database view, or SQL Expression, so that it becomes part of the report's raw data set.
0
 
LVL 4

Expert Comment

by:spangdelta
ID: 23451440
I have occasional need to subtotal Part quantities by Customer Order, then display the data in descending order by the subtotal (Answering the question, "What parts are being ordered the most by what customers, sorted by the most-ordered part to the least?".
I create a simple customer order report sorted and subtotalled (Grouped) by Part Number, with a 'Quantity' subtotal.
I then go to Report / Group Sort Expert, set the "For this group sort" box to "Top N", then set the '"Where N is:" box to a number greater than the largest number of subtotal groups the report will ever produce.
0
 
LVL 4

Expert Comment

by:spangdelta
ID: 23451469
Sorry - the phrase
I have occasional need to subtotal Part quantities by Customer Order
should have been written
I have occasional need to subtotal Part quantities across Customer Orders
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question