Subtotaling based on other fields, at different levels of expansion

Crawly

New Member
Joined
Aug 23, 2012
Messages
1
Dear all,
I am trying to use PowerPivot to look at some OLAP data. For this example, I have two dimensions and one measure:
Item dimension: Item Class, Item Group, Item
Transaction Currency: Transaction Currency
Measure: Revenue in Transaction Currency

What I would like to achieve is the following:
ItemClass1ItemGroup1Item1EUR100
ItemClass1ItemGroup1Item1USD100
ItemClass1ItemGroup1Item2EUR300
ItemClass1ItemGroup1Item3USD200
ItemClass1
Subtotal ItemGroup1
EUR
400
USD
300
ItemClass1ItemGroup2Item4EUR50
...............

<tbody>
</tbody>

In words - I want each item to be broken down by currency, and each subtotal to be broken down by currency.

I am able to get this sort of summary when I have the Item dimension expanded up to the Item Group level, but as soon as I expand it to the Item level, the subtotals are no longer split by currency, and instead sum up all of the lines regardless of currency (an obviously undesirable result).

I'd appreciate any ideas as to how to get this done, because I am at a complete loss and I have not been able to Google up a solution.

Thanks,
-C
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi Crawly,

You can achieve a muli-lines for subtotals by creating a DAX measure for each currency:

EUR:=CALCULATE( SUM(Table1[100]) , Table1[Currency] = "EUR" )

USD:=CALCULATE( SUM(Table1[100]) , Table1[Currency] = "USD" )

When you place them in the 'Values' pane of the pivot table, a 'E Values' group is now automatically created on the column labels pane. You can now drag that one down to the 'row labels'. Finally, you can have the item repeat its values by right clicking on any cell on the item column (in the pivot table) and then go to 'field settings', 'layout and print' and check 'repeat item lables'.

The only drawback is that item/currency combinations with no value will still show (which may be desiable in some scenarios!).


Javier Guillen
Senior BI Consultant
PowerPivot Blog: http://javierguillen.wordpress.com
Twitter: @javiguillen
 
Upvote 0

Forum statistics

Threads
1,214,992
Messages
6,122,631
Members
449,095
Latest member
bsb1122

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top