Solved

Group Sort Top N in Crystal Reports 2008 (12.2.0.290)

Posted on 2010-11-29
8
1,276 Views
Last Modified: 2012-05-10
I am trying to use a parameter to set the N value in Top N formula in the group sort expert. I set the N value to 10 and then in the formula was trying to just have a numeric parameter but that wasn't changing the N from 10 so i just entered a simple formula (if 1=1 then 25 else 35) to test if i could get the Top 25, but i still get only the Top 10. What am i missing?
0
Comment
Question by:joecrew
  • 4
  • 3
8 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 34233796
Are you refreshing the reports and choosing new parameters or is this with saved data?

mlmcc
0
 

Author Comment

by:joecrew
ID: 34235086
i think i know my answer. I am creating the report using Crystal 2008, however the report is being run though a web app that is using Crystal 9 report engine, which i believe does not include the formula function for the group sort so it's not using it.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 34235769
CR9 is different and may be missing some features but I think that feature is there.

mlmcc
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 34

Expert Comment

by:James0628
ID: 34236753
Where do you enter that Top N formula?  I've got CR 10 and I have a place to enter N, but I don't see anything about a formula.  I think that was added after CR 10.  I'm attaching a screenshot.

 James

top-N-window.JPG
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 34239887
It was added with CR XI

mlmcc Group Sort Expert
0
 

Author Comment

by:joecrew
ID: 34241034
i have the last screen shot in my Crystal Designer, but the report is actually run through a web app that is using crystal 9 for it run time and thats where i think the feature is being removed.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 34241296
Probably.

In that case, you probably can't do what you want.

I did a report where the value was passed in and I simply counted the records in a group and suppressed them after N was reached.

mlmcc
0
 

Author Closing Comment

by:joecrew
ID: 34242135
The way i have designed the report it was easier to have the script that calls the report select between 2 different Crystal reprots to push the data to, one with a Top 10 and the other that has all the records.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

803 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