Solved

can you make group selection formula function like a parameter?

Posted on 2004-04-13
5
290 Views
Last Modified: 2012-06-27
I have group selection formula set up for a report (eg. show me only those groups with the value in the column '% achieved' less than 95% or greater than 105%) and the user wants to be able to change the criteria the way they want. I know I can do it in the "report - edit selection formula - group" area but the user wants to have the criteria shown on the report header section to show them what criteria they set and everytime the criteria changes what's shown on the report header should also change. I can't get this done b/c I can't make this a parameter for user to choose. If I make the "% achieved" a parameter then what's gonna change is the record value not the group value. When you talk about parameter it always affects the record right? So is there really a way to do this? Thanks very much for your help! I'm really stressed out with having to design 7 complicated crystal reports within two weeks including the part of writing stored procedures with many joins and temp tables and subqueries.
0
Comment
Question by:qinyan
  • 2
5 Comments
 
LVL 42

Expert Comment

by:frodoman
Comment Utility
>>> When you talk about parameter it always affects the record right?

No, you can have a parameter that affects the group instead of the individual record (in fact you can have a parameter that doesn't affect record selection at all if you want to - to be used only in calculations perhaps, etc.)

Report -> Edit Selection Formula -> Group:  
{GroupByField} >= {?ParameterField1} AND {GroupByField} <= {?ParameterField2}
0
 

Author Comment

by:qinyan
Comment Utility
Thanks for the reply! but when I did this I got a message saying a number is needed here (instead of ?Parameterfield).
0
 
LVL 42

Accepted Solution

by:
frodoman earned 500 total points
Comment Utility
The datatypes must match so if the field in the database is numeric then the parameter field must be numeric also (which means that your users will have to enter "95" instead of "95%").  This error message sounds like the parameter field you're using is a string type.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now