cancel
Showing results for 
Search instead for 
Did you mean: 

How to display avg total in cross tab while using max of summarized fields

Former Member
0 Kudos

Dear Experts ,

In Cross tab summarized field , i am using maximum summary option . In Total i want to display Sum of total value .

I refer answer from this post https://answers.sap.com/questions/206093/index.html , Where its working fine while using Summarized option as Sum .

Please check image file and advise .

Accepted Solutions (0)

Answers (1)

Answers (1)

abhilash_kumar
Active Contributor
0 Kudos

Hi Sri,

Right-click the value in that 'Total' cell > Select Calculated Member > Edit Calculation Formula > Paste this code:

local numbervar i;
local numbervar addn;
for i := CurrentColumnIndex to GetNumColumns-1 do
    addn := addn + GridValueAt(CurrentRowIndex, i , CurrentSummaryIndex);
addn; 

-Abhilash

Former Member
0 Kudos

Hi Abhilash ,

Above Formula is working perfectly for the year total of 2017 , but for the value of 2016, it's displaying the wrong total.

Please check the last two row in the attached image file, total for 2017 - 19 is correct, the total for 2016 is 60 but its display 86.

Please suggest.

Former Member
0 Kudos

Hi Abhilash,

Could you please help me to sort out this.