Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: ?? on evaluate all values in a formula Post Reply Post New Topic
Author Message
jbalbo
Senior Member
Senior Member
Avatar

Joined: 17 Feb 2011
Online Status: Offline
Posts: 219
Quote jbalbo Replybullet Topic: ?? on evaluate all values in a formula
    Posted: 20 Jun 2013 at 10:41am
Hi

I have a formula where if the first value is not met then look at the next if not that then the next etc....
if ({v.dmcode} = '001' and {v.CAD227} = 'on'  and {v.FullName} = 'Community') then 'O'
else
if ({v.CAD226} = 'on' and DateDiff('d', {v.ccadmit}, {v.STARTTIME}) < 31) then 'A'
else
if ({v.dmcode}='002' and ({v.CAD204} = 'on' or {v.CAD205} = 'on' or {v.CAD207} = 'on')) then 'T'
else
if ({v.dmcode} = '001' and {v.CAD227} = 'on'  and {v.FullName} = 'Clubhouse') then 'S'
else
if ({v.dmcode} = '001' and {v.CAD227} = 'on'  and {v.FullName} = 'Clubhouse & Community') then 'B'


it only seems to evaluate the first one?

Thanks
Joe


IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 20 Jun 2013 at 10:49am

do you have NULL values in your data set?

Change the option inthe formula editor to 'use default values for nulls'
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.031 seconds.