Search code examples
sqldatabase-designssasdata-warehouseolap

Date dimension and cumulative Months


The Date dimension is in the following state:

Date dimension

In SSAS looks like this: enter image description here

Based on this how can I build an Hierarchy in SSAS with the following structrue:

2016
   Jan-Feb
   Jan-Mrz
   Jan-Apr
   Jan-Mai
   Jan-Jun

... where Jan-Apr will be the cumulative Amount from January until April in 2016.


Solution

  • Downvotes are probably because this is a bad dimension design. You can get a cumulative aggregation by dropping all this Jan-Feb etc stuff, using a simple Date dimension and using the PeriodsToDate function.