Forcing a Measure to Calculate At A Different Granularity

SimonNU

Board Regular
Joined
Jul 11, 2013
Messages
140
Hi guys
I have a series of nested measures. One of these measures calculates daily throughout the month. However, I require this measure to be rolled up into month end periods when dragged into a pivot table and also for the purposes of other measures that rely on it (e.g. opportunity cost is calculated at month end, not daily).

Essentially, I have the below:
Sales:=SUMX( fact, [quantity] * [price] )

And I'd like to roll it up like so:
SalesByMonthEnd := SUMX ( SUMMARIZE ( dimDate, dimDate[LastDayOfMonth] ), [Sales] )

Unfortunately, when I drag [SalesByMonthEnd] into a pivot table against dimDate[Date], it still returns the daily totals, e.g.
7/8/2009472.0
8/5/20090.2
9/2/20090.1
9/3/20090.0
10/2/20090.4
10/5/20090.0

<tbody>
</tbody>

How do I ensure it calculates daily but then always rolls up into a dimDate[MonthEnd]?

Thanks,
Simon

PS: Cross posted to msdn forums
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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