on 09-30-2014 2:52 PM
Hi Binit,
Here's what you need to do:
1) Right-click the 'Total' Column and select Calculated Member > 'Insert Child'
A blank column with zero values is added to the left of 'Total'
2) Right-click the blank header cell of the new column > Select Calculated Member > Edit Header formula and use this text:
"Total"
3) Right-click one of the zero values on the new column > Calculated Member > Edit Calculation Formula and use this code:
local numbervar i;
for i := 0 to CurrentColumnIndex - 1 do
(
local numbervar summ := tonumber(summ + gridvalueat(CurrentRowIndex, i , CurrentSummaryIndex))
);
summ
4) You can then right-click the header for 'Total' column to the extreme right > select Column Grand Totals > Check Suppress Grand Totals.
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Binit,
The reason there is no blank columns added to the cross-tab when inserting a child, it is because your cross-tab is formatted to suppress the subtotal. A child calculated member is added as a subtotal, since it is suppressed, then it does not display on the cross-tab.
To view the column you added, go to the cross-tab expert, and under the tab "Customize Style", select the second column, and uncheck the Group Options: "Suppress Subtotal"
Once this is done, then the column you added will display on the cross-tab.
Patrick
Patrick - Thanks for reviewing. To make it simple, I removed the extra fields to avoid subtotals.
Suppress sub total is now grayed out and unchecked. Note, suppress empty columns and rows have been unchecked.
Here is snapshot without child row and child column.
After adding the child row and child column, here is the calculated members expert box.
The child row was added ("Sun") but child column before total did not get added.
So the issue is still there.
On another note, I have found the solution to my requirement as shown below.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.