![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
YTD(Tail([Issue Date].[Issue Month].members).Item(0)) |
| YTD(ParallelPeriod([Issue Date].[Issue Year], 1, |
#3
| |||
| |||
|
|
Assuming that [Issue Date] is a Time dimension with a [Year] level, then try YTD() and ParallelPeriod(): Months to date for Current Year: YTD(Tail([Issue Date].[Issue Month].members).Item(0)) Same Months to date in Previous Year: YTD(ParallelPeriod([Issue Date].[Issue Year], 1, Tail([Issue Date].[Issue Month].members).Item(0))) - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Then can you explain the design of the [Issue Date] dimension hierarchy - is it not regular? - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#6
| |||
| |||
|
|
Then can you explain the design of the [Issue Date] dimension hierarchy - is it not regular? - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#7
| |||
| |||
|
| Ancestor(Tail( |
#8
| |||
| |||
|
|
If you need all months of the previous year, then: Ancestor(Tail( [Issue Date].[Issue Month].Members).Item(0), [Issue Date].[Issue Year]).PrevMember.Children - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#9
| |||
| |||
|
| Ancestor(Tail( |
#10
| |||
| |||
|
|
Previous year (if it exists) should then be: Ancestor(Tail( [Issue Date].[Issue Month].Members).Item(0), [Issue Date].[Issue Year]).PrevMember - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
![]() |
| Thread Tools | |
| Display Modes | |
| |