![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||
| ||||
|
|
([Measures].[Revenue],Ancestor([Time].CurrentMember, [Time].[Year])) |
| ([Measures].[Revenue],Ancestor([Time].CurrentMember, [Time]. |
|
Thank you advance. This group has being a life saver. I am trying to retrieve total for the whole year , whether I am slicing the data by Year, Quarter or Month. but the following code does not work. I am also trying to do the sime for the previous year. So if I get the total for this year, I want the total for the previous year. ([Measures].[Revenue],ClosingPeriod ( [Time].[Year], [Time].CurrentMember.Parent)) The problem is that I want to check in the calculated measure, that If I am at the year level, only to return the current, but if I am at any other level then use year level. |
#3
| |||
| |||
|
|
This will get the full year amount for the current year: ([Measures].[Revenue],Ancestor([Time].CurrentMember, [Time].[Year])) And this would get the full year amount for the previous year: ([Measures].[Revenue],Ancestor([Time].CurrentMember, [Time]. [Year]).Prevmember) -- Regards Darren Gosbell [MCSD] dgosbell_at_yahoo_dot_com Blog: http://www.geekswithblogs.net/darrengosbell In article <3F65693A-7CE8-4173-9334-D50BD31C6A18 (AT) microsoft (DOT) com>, Tomas (AT) discussions (DOT) microsoft.com says... Thank you advance. This group has being a life saver. I am trying to retrieve total for the whole year , whether I am slicing the data by Year, Quarter or Month. but the following code does not work. I am also trying to do the sime for the previous year. So if I get the total for this year, I want the total for the previous year. ([Measures].[Revenue],ClosingPeriod ( [Time].[Year], [Time].CurrentMember.Parent)) The problem is that I want to check in the calculated measure, that If I am at the year level, only to return the current, but if I am at any other level then use year level. |
![]() |
| Thread Tools | |
| Display Modes | |
| |