oanion
IS-IT--Management
- Jun 18, 2004
- 55
I'm having another ranking issue, expect this time, I'm trying to rank on a formula field instead of a table field. Here are the facts:
Database = SQL Server 2000
Crystal Reports version 10
The report uses one parameter, which is the numeric representation of the year.
The report is grouped on a client name
The Liq Rate formula based on two fields in a database table: TotalPaid/BalancePlaced.
The report is can be considered a manual crosstab because I had to create an individual forumula to calculate the LiqRate for Each month based on the grouping. For example, the syntax in Crystal to calculate the Liq rate for January is:
if month({vwBatchTrackMaster.PlacedDate}) = 1 then
(Sum ({vwBatchTrackMaster.TotalPaid}, {vwBatchTrackMaster.client})/Sum ({vwBatchTrackMaster.BalancePlaced}, {vwBatchTrackMaster.client}))*100
I have the exact formula for each month in the year.
I'm trying to create a report that will show the LiqRates for each month, AND calculate the LiqRate separately for each month. As I have 12 LiqRate formulas, (one for each month), I know I will have to have 12 Ranking Formulas. The format of the report is as follows:
JANUARY FEBRUARY
LiqRate Ranking LiqRate Ranking
client1 10.5% 4 27.3% 3
client2 7.2% 5 17.4% 4
client3 1.6% 6 52.3% 1
client4 15.5% 3 6.5% 6
client5 77.4% 1 45.2% 2
client6 51.7% 2 7.6% 5
I'm displaying only 2 months as an example, however, all 12 months need to be calculated.
Help from anyone would be greatly appreciated.,
Database = SQL Server 2000
Crystal Reports version 10
The report uses one parameter, which is the numeric representation of the year.
The report is grouped on a client name
The Liq Rate formula based on two fields in a database table: TotalPaid/BalancePlaced.
The report is can be considered a manual crosstab because I had to create an individual forumula to calculate the LiqRate for Each month based on the grouping. For example, the syntax in Crystal to calculate the Liq rate for January is:
if month({vwBatchTrackMaster.PlacedDate}) = 1 then
(Sum ({vwBatchTrackMaster.TotalPaid}, {vwBatchTrackMaster.client})/Sum ({vwBatchTrackMaster.BalancePlaced}, {vwBatchTrackMaster.client}))*100
I have the exact formula for each month in the year.
I'm trying to create a report that will show the LiqRates for each month, AND calculate the LiqRate separately for each month. As I have 12 LiqRate formulas, (one for each month), I know I will have to have 12 Ranking Formulas. The format of the report is as follows:
JANUARY FEBRUARY
LiqRate Ranking LiqRate Ranking
client1 10.5% 4 27.3% 3
client2 7.2% 5 17.4% 4
client3 1.6% 6 52.3% 1
client4 15.5% 3 6.5% 6
client5 77.4% 1 45.2% 2
client6 51.7% 2 7.6% 5
I'm displaying only 2 months as an example, however, all 12 months need to be calculated.
Help from anyone would be greatly appreciated.,