Hi,
We're trying to find out whether Crystal (Version 10) is able to perform some calculations for us within a cross-tab object.The database is Oracle 11g.
We will have around 80 calculations that could be performed, in the following format:
Column Name Calculation Operands
Column 1 Column 3 x 100 / Column 5 Column 3, Column 5
Column 2 Column 4/12 x Column 1 Column 4, Column 1
Essentially, for a given cell in the crosstab we would look at it's column name, which would let us know which calculation should be performed. We would then look at the values from two other column names for that row, and calculate the value in the first column using the examples in the above table.
We would likely store all calculations in a single function which we'd keep in the repository. For example:
If TABLENAME.FIELDNAME = 'Column1' then formula = 'Column3 x 100 / Column5'
else if TABLENAME.FIELDNAME = 'Column2' then formula = 'Column 4/12 x Column 1'
From past experience with cross-tabs, I have found that it can be a little difficult to perform calculations on cross-tab cells, based on the values of other cells in the cross-tab. Using the above example, can anyone suggest a way that we can do this? For example, could we perform these calculations before the cross-tab is actually rendered?
Thanks, Gavin
We're trying to find out whether Crystal (Version 10) is able to perform some calculations for us within a cross-tab object.The database is Oracle 11g.
We will have around 80 calculations that could be performed, in the following format:
Column Name Calculation Operands
Column 1 Column 3 x 100 / Column 5 Column 3, Column 5
Column 2 Column 4/12 x Column 1 Column 4, Column 1
Essentially, for a given cell in the crosstab we would look at it's column name, which would let us know which calculation should be performed. We would then look at the values from two other column names for that row, and calculate the value in the first column using the examples in the above table.
We would likely store all calculations in a single function which we'd keep in the repository. For example:
If TABLENAME.FIELDNAME = 'Column1' then formula = 'Column3 x 100 / Column5'
else if TABLENAME.FIELDNAME = 'Column2' then formula = 'Column 4/12 x Column 1'
From past experience with cross-tabs, I have found that it can be a little difficult to perform calculations on cross-tab cells, based on the values of other cells in the cross-tab. Using the above example, can anyone suggest a way that we can do this? For example, could we perform these calculations before the cross-tab is actually rendered?
Thanks, Gavin