I'm having issues trying to create a MDX calculated member inside a SSAS cube, that will show the aggregation for the previous 12 months (excluding the current month), based on a date from Calendar hierarchy.
I have found this post, however, because in my case the base measure is a DistinctCount aggregation, the YTD()
function does not work by adding Aggregate()
- it always displays NULL
- and by adding Sum()
it will display a RollingSum
, which is incorrect.