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

MTD Question

$
0
0

Hi All,

I have a Date dimension, that has the following attribute and hierarchy.

Date Dimension

- Year

- Quarter

- Month

- Day

- Calendar Hierarchy

I created 2 calculated measures: YTD and MTD for Sales

SUM(YTD([Date].[Calendar].CurrentMember),[Measures].[Sales])

and 

SUM(MTD([Date].[Calendar].CurrentMember),[Measures].[Sales])

When browsing it all works fine. but when I use Year and Month attributes, it gives me no result for the Sales MTD because in my MDX script I use the Calendar hierarchy.

My question is, how can I calculate Sales MTD that both hierarchy and attributes can use?

Thanks,


Viewing all articles
Browse latest Browse all 2472

Trending Articles



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