Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

Calculated measure based on date range

$
0
0

Hi,

I need some assistance regarding a calculated measure that i have to create. I require a calculated measure that provides the Cost measure over the last 30 days. The calculated measure must be based on the last possible date in the date range used by MDX. If the hierarchy is on year is should be the last date of that year minus 30 days, if it’s a month it should be the last day of the month minus 30 days etc. But the query must also work if a year/month/week/day is used with another year/month/week/day in other words it must allow a combination of the date hierarchy and still use the last date minus 30 days for the calculated measure.

It will be much appreciated if someone can assist me with this.

Thanks and Regards,

Paul


Paul Burger


Viewing all articles
Browse latest Browse all 2472

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>