Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Column value selection Post Reply Post New Topic
Author Message
Sabrina
Newbie
Newbie
Avatar

Joined: 04 Feb 2010
Location: United States
Online Status: Offline
Posts: 4
Quote Sabrina Replybullet Topic: Column value selection
    Posted: 17 Dec 2010 at 8:26am
I am trying to create a crystal report with the following characteristics:
Column 1: Original Budget (RevId = “0001”) – Formula: if {PJREVCAT.RevId} = "0001" then {PJREVCAT.Amount} else 0
Column 2: Cumulative Budget Adjustments (Column 3 – Column 1)
Column 3: Revised Budget – Field: Total_budget_amount
 
I would like it to look as follows:
Task          Original Budget          Cum. Budget Adj.                    Revised Budget
00000        10000                        5000                                        15000
11111        500                            0                                             500
22222        0                               1000                                        1000
 
If I don’t use the selection expert I have a problem for the rows (tasks) with values in more than 1 RevId.
The table looks as follows:
Task          Original Budget          Cum. Budget Adj.                    Revised Budget
00000        0                               15000                                      15000
11111        500                            0                                             500
22222        0                               1000                                        1000
 
Then the amount shown for task “00000” is 0 because it does not know which PJREVCAT.Amount it should take.
 
If I use the selection expert and tell it to only use data for PJREVCAT.RevId = “0001” it displays the correct amounts for all the rows BUT it does not show the rows that don’t have a value in RevId “0001” but in a later RevId.
The table looks as follows:
Task          Original Budget          Cum. Budget Adj.                    Revised Budget
00000        10000                        5000                                        15000
11111        500                            0                                             500
 
Any suggestions are appreciated.
 
Thanks for your help.

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.016 seconds.