Solved

can you make group selection formula function like a parameter?

Posted on 2004-04-13
5
292 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 500 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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

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. …
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 …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

777 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