Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need to select field that must meet 2 parameters 1

Status
Not open for further replies.

Jedderm

MIS
Sep 7, 2017
4
US
The field admin_nbr_value is a multiselect.

I want the report to run only if there is an "Initial" and "Termination" selected from admin_nbr_value field; which means the client filled out 2 separate forms.

Each form has data associated with it that is being aggregated to show increase/decrease in findings.

If there is no Termination form, I don't want the Initial form and value fields to show.

The below only will show the Term data
Using Crystal 13




IF ({cc_parent_rating.p_survey_admin_nbr_Value}) = "Termination" THEN

{cc_parent_rating.p_survey_admin_nbr_Value} in ["Initial", "Termination"] and

{cc_parent_rating.p_rating_date} in {?StartTermDate} to {?EndTermDate}



All suggestions welcome...
 
Add the table to your report twice. For simplicity, let’s call the original table T1 and the second version of it T2. Link the customer field with an equal join from table T1 to T2. Use a record selection formula like this:

T1.value = Termination and
T1.date >= {?StartTerm} and
T1.date < {?EndTerm}+1 and
T2.value in [Initial,Termination]

Then you would use the data in T2 for your calculations.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top