|
-
Dec 20th, 2007, 11:14 AM
#1
Thread Starter
Addicted Member
Help adding a database field to report - not working
I added another field to my Select statement that populates the dataset for my report. This field is NOT an actual field in my database table.
I added the LSS field to my select like this
SUM(CASE KILSHEET.Contract WHEN 1 THEN ((TOT_CARC_WEIGHT / 100) * 1.75) ELSE 0 END) AS LSS
I can't get this field to show up in my report database fields even after verifying the database. Is this because verify database looks at the physical database rather than the select that populates the dataset?
How can I get the LSS field to appear in the list so it can be used.
Also, the select runs perfect in QA. It returns the correct data.
-
Dec 20th, 2007, 05:00 PM
#2
Hyperactive Member
Re: Help adding a database field to report - not working
I have noticed in some of my reports (Oracle db) that when I have a sum it doesn't show up in my report. I have to change it to a char and then it shows up.
Example:
TO_CHAR(SUM(CASE KILSHEET.Contract WHEN 1 THEN ((TOT_CARC_WEIGHT / 100) * 1.75) ELSE 0 END)) AS LSS
Just an idea...
-
Dec 20th, 2007, 05:29 PM
#3
Thread Starter
Addicted Member
Re: Help adding a database field to report - not working
I tried that with no luck
-
Dec 27th, 2007, 12:19 AM
#4
Re: Help adding a database field to report - not working
Try :
1.- If you have all the nedded elements, add a new formula in the report that makes your desired calculations
Or
2.- If it doesn' affect your project, add the field to your physical database,
Or
3.- Change the way you define the report's data source
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|