Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Formula Causes Data to be Excluded` Post Reply Post New Topic
Author Message
Chase
Newbie
Newbie


Joined: 28 Jan 2013
Online Status: Offline
Posts: 17
Quote Chase Replybullet Topic: Formula Causes Data to be Excluded`
    Posted: 18 Feb 2013 at 3:19am
So I've got a report that links via an account code. Basically the table for the account has a field called "rollup", which, may point to a different account code. In the event that two accounts point to the same rollup account, they need to be reported on together. I linked my database so that a second version of the table is linked based on the rollup field.
 
I then wrote this formula:
 
If isnull({table_1.name}) then
ProperCase({table.name})
else
ProperCase({table_1.Name})
 
with the basic idea being if there is a rollup code in there I want that account's name, but if there's not, I want the original table's name.
 
The problem is, when I set this formula up, it seems to exclude null values from the data and doesn't even pull the records. If I remvoe this formula and refresh, the records are pulled again.
 
Any idea what causes this?
IP IP Logged
Chase
Newbie
Newbie


Joined: 28 Jan 2013
Online Status: Offline
Posts: 17
Quote Chase Replybullet Posted: 18 Feb 2013 at 4:40am
I guess this was caused by the join type I used. I changed it to full outer and fixed. Still not sure why...but seems to fix it.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 19 Feb 2013 at 3:45am

unless you enforce the join in the join set up they are not enforced until you use values from both sides of the join (one field from each table). The major symptom of this is whatching records 'disappear' when you add a field to the report canvas.

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.