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

Can’t get PrevMember to work on date hierarchy

$
0
0

I am new to SSAS and really need to get this to work so any input is appreciated.

I have a date dimension that includes the following attributes:

Year,

Month Number Of Year.

I have a calculated member that gives the previous year’s sales quantity:

([Measures].[Sales Quantity],[Date].[Year].PrevMember)

I filter the data on ‘Year’ = 2012 and ‘Month Number Of Year’ = 1,2,3,4,5 and I get the correct result which is sales from year 2011 months 1,2,3,4,5.

However, I added a heirarchy called ‘year-month’ with relationship:

 datekey-month number of year – year

I cannot get the above calculated member to work when I filter using the heirarchy with exact filter described above.

I would have expected this to just work with no other changes because these are the same attributes except now they are in a heirarchy.  I even tried referencing the hierarchy in the calculated member and got no result:

([Measures].[Sales Quantity],[Date].[ year-month].[Year].PrevMember)

Again any input is appreciated as I am completely stuck and have spent hours researching and troubleshooting this.



Viewing all articles
Browse latest Browse all 2472

Trending Articles



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