Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Crosstab Blank extra column Post Reply Post New Topic
Author Message
flower
Newbie
Newbie


Joined: 18 Jun 2012
Online Status: Offline
Posts: 12
Quote flower Replybullet Topic: Crosstab Blank extra column
    Posted: 01 Jul 2015 at 9:04am
Hi,

I have 2 tables, t1 and t2. Did left outer join on t2. Did use crosstab in my report. I created a formula as below,

IF not(isnull({t2.STUDENT})) THEN
    IF (not ({t2.CODE} in [2050, 2130])        and {t1.ESE} = "Y" and {t2.PLACE} in ["1", "4", "5"])
        THEN "ESE"
    ELSE
        IF ( {t1.ESE} = "N" or
               ( {t1.ESE} = "Y" and
                      ({t2.CODE} in [2050, 2130] and {t2.PLACE} <> ["1", "4", "5"])
               )
            ) THEN "NON-ESE"
        ELSE ""

else
    IF ( {t1.ESE} = "N" or
               ( {t1.ESE} = "Y" and
                      ({t2.CODE} in [2050, 2130] and {t2.PLACE} <> ["1", "4", "5"])
               )
            ) THEN "NON-ESE"
    ELSE "ESE"

There is an extra column along with "ESE" and "NON-ESE" column, which should not be and sum of (extra column + "ESE" and "NON-ESE" column) is more than the Total.

Things that need to be fixed,
1. There should be only 2 columns, "ESE" and "NON-ESE"
2. The total should match


Can someone please help me in this. Thanks.

Edited by flower - 01 Jul 2015 at 9:06am
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 01 Jul 2015 at 9:25am
likely caused by the NULL values.
place your formula in detail along with each of the fields that are used to evaluate your output and scan each row to see which condition you are missing
IP IP Logged
flower
Newbie
Newbie


Joined: 18 Jun 2012
Online Status: Offline
Posts: 12
Quote flower Replybullet Posted: 01 Jul 2015 at 9:46am
Thanks... Will try that.
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.