Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Select Expert OR Logic Filtering Post Reply Post New Topic
Author Message
skinfreak
Newbie
Newbie
Avatar

Joined: 29 Jan 2009
Online Status: Offline
Posts: 18
Quote skinfreak Replybullet Topic: Select Expert OR Logic Filtering
    Posted: 30 Jul 2009 at 3:28am
Hi there,

I have two conditions that I want to fulfil in filtering the data. I the forst case, the field {vwTMActualPersonnel.PersonnelRoleCode} may or may not have entries for "LEADS", and if not, I want the report to look at entries for "SURG" as a fall back. The "LEDEN" field is spearate and not related.

The formula I come up with is as follows:

{vwSPActualSession.StartDate} in Last7Days and
(
if {vwTMActualPersonnel.PersonnelRoleCode} = "LEDEN"
then {vwTMActualProcedure.MainProcedure}
OR

if {vwTMActualPersonnel.PersonnelRoleCode} = "LEADS"
then {vwTMActualProcedure.MainProcedure}

OR

if {vwTMActualPersonnel.PersonnelRoleCode} = "SURG"
then {vwTMActualProcedure.MainProcedure})

If I use OR statements, then I only get the first selected field value. If I use ELSE I get everything. What I need a filter for the "LEADS" and "SURG" values, and also include the "LEDEN" values.

Thanks!
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 30 Jul 2009 at 4:34am
{vwSPActualSession.StartDate} in Last7Days and
{vwTMActualPersonnel.PersonnelRoleCode} in ["LEDEN","LEADS", "SURG"] 
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.012 seconds.