Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: concatenate formulas Post Reply Post New Topic
Author Message
Robotacha
Groupie
Groupie
Avatar

Joined: 11 Nov 2009
Location: United Kingdom
Online Status: Offline
Posts: 97
Quote Robotacha Replybullet Topic: concatenate formulas
     Posted: 04 Oct 2011 at 1:54am
Hello,
 
Hope someone can help with my simple request.
 
I have 3 boolean fields.
 
KUCHECK
GTCHECK
FACHECK
 
these fields produce either TRUE or null
 
I have wrote a formula ( {@KUDETAIL} )for each field like:
 
IF {TABLE.KUCHECK}= TRUE THEN "KD" ELSE ""
 
 
works great!
 
my problem is,
some customers have TRUE in  2 or 3 of these fields, and when I try to concatenate the formulas, it displays blank.
 
 
my concatenate formula is like:
 
 
 
returning these results:  ( " - " represents blank)
 
 
Customer name     KUcheck     FAcheck     GTcheck      Concatenate
CUSTOMER A            TRUE              -                -                     -
CUSTOMER B            TRUE          TRUE         TRUE             KDFAGT
CUSTOMER C            TRUE             -             TRUE                  -   
 
 
 
when it should be returning:
 
Customer name     KUcheck     FAcheck     GTcheck      Concatenate
CUSTOMER A            TRUE              -                -                    KD
CUSTOMER B            TRUE          TRUE         TRUE             KDFAGT
CUSTOMER C            TRUE             -             TRUE               KDGT   
 
 
 
 
Any ideas?
 
All help greatly appreciated.
 
Regards,

Michael Jones
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 04 Oct 2011 at 3:44am
it fails when you don't tell it what to do with the NULLs
in the formula change the pick option from 'Exceptions for Nulls' to 'Default values for Nulls'
IP IP Logged
Robotacha
Groupie
Groupie
Avatar

Joined: 11 Nov 2009
Location: United Kingdom
Online Status: Offline
Posts: 97
Quote Robotacha Replybullet Posted: 04 Oct 2011 at 4:02am
Again, awesome result for dblank.
 
thanks for this.
 
 
regards,
Regards,

Michael Jones
IP IP Logged
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