Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Subtract subtotals in pivot table

Hi all,

I've got a problem to subtract subtotal in a pivot table if a have dimension in rows and in columns. It is requirement often in finical P&L analysis.
As long as I have just 1 dimensions, the formula

sum({$<Parent={'1 Sales'}>} total (Value))

is working perfectly (Attached file complex Pivot /Pivot 2).

As soon as I have to add an additional dimension in column order, the "total" statement is calculated in each column by the overall subtotal by row instead of subtotal by row and column. (Attached file complex Pivot /Pivot 3).

Subtotals should be calculated as following. Since regular analysis needs to be done by several people, all using QV, a direct QV solution is much handier than an Export into Excel.



SOEParentPeriod2010 012010 02Gesamt
1 Margin1 Sales-600-1200-1800
1 Margin2 Standard COS180360540
1 MarginSubtotal (1 Margin)-420-840-1260
2 Adj. Margin3 Other COS306090
2 Adj. Margin4 Variance4590135
2 Adj. MarginSubtotal (1 Margin - 2 Adj. Margin)-345-690-1035
3 EBIT5 G&A60120180
3 EBIT6 Selling75150225
3 EBIT7 Marketing90180270
3 EBIT8 Other Other above105210315
3 EBITSubtotal (2 Adj. Margin - 3 EBIT)-15-30-45
4 Net Income9 Other below102030
4 Net IncomeSubtotal (3 EBIT - 4 Net Income)-5-10-15
Gesamt-5-10-15




It would be great, if somebody could give me a hint how to handle this problem.

Many Thanks

Werner

1 Solution

Accepted Solutions
pover
Luminary Alumni

Werner,

In order to define a total that respects the scope of a dimension use the following syntax:

sum(total <dimension> value)

The example is in the pivot table prueba in the attached file.

Pover

View solution in original post

2 Replies
pover
Luminary Alumni

Werner,

In order to define a total that respects the scope of a dimension use the following syntax:

sum(total <dimension> value)

The example is in the pivot table prueba in the attached file.

Pover

Not applicable
Author

Many Thanks ! It is working perfectly!