![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi there! Could someone please help me with this. I urgently need a formula on getting the current year YTD. For instance, given that I have data for 2005 and 2006. If YTD for Dec 2005 is 100 and Jan 2006 is 50, the count for Dec 2005 should not be added to the YTD for 2006. Meaning, it will reset and the 2006 YTD should be 50 and not 150. I hope someone could help me. Thanks! |
#3
| |||
| |||
|
|
Depending on your time dimension hierarchy. If you have a year level in your time hiearchy, you could use YTD() function. |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Can you describe the structure of your time dimension, even if it isn't tagged as a "Time" dimension - does it have levels like Year, Month, Day? If so, you could probably use PeriodsToDate(), like: PeriodsToDate([Time].[Year], [Time].CurrentMember) - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
You can try this: SUM(PeriodsToDate([SAT Period].[Year], [SAT Period].CurrentMember), [Measures].[TMO]) - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
![]() |
| Thread Tools | |
| Display Modes | |
| |