on 06-14-2013 7:35 AM
Dear Experts ,
I designed a cross tab report and every thing is working fine .., Now i need to add a new summarise fields next to Actual amount .
I create a formula Total
if isnull ({R00068_2.BUDGETED_AMOUNT} )
then
0
else
({R00068_2.ACTUAL_AMOUNT}/{R00068_2.BUDGETED_AMOUNT})*100
But i am not getting correct amount ,getting same total for every group . Please check my image file , What formula i need to write .
Hi Sriram,
That'll never work!
You need to use Embedded Summaries instead. If you're using CR 2008 or higher, here's what you need to do:
1) Remove the @Total formula from the Crosstab
2) While in the Preview Mode, right-click the Actual Column and select Embedded Summary > Insert Embedded Summary
3) You should see cells with the text 'Edit this formula'. Right-click one of those cells and select Embedded Summary > Edit Calculation formula and use this code:
if GridValueAt(CurrentRowIndex, CurrentColumnIndex, CurrentSummaryIndex-2) = 0 then
0
else
(GridValueAt(CurrentRowIndex, CurrentColumnIndex, CurrentSummaryIndex-1)/GridValueAt(CurrentRowIndex, CurrentColumnIndex, CurrentSummaryIndex-2))*100
Let me know how this goes.
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.