Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

can you make group selection formula function like a parameter?

Posted on 2004-04-13
5
Medium Priority
?
303 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
ID: 10818082
>>> 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
ID: 10818280
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 2000 total points
ID: 10818315
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

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 video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

885 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