![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| (Tail(Descendants( |
#3
| |||
| |||
|
|
Looks like the logic at the week versus month levels is inconsistent. Would something simpler like this work? (Tail(Descendants( [Time].CurrentMember, [Time]. [Day Name])).Item(0), [Measures].[Cumulative]) - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Help... I have a calculated member that I use to calculate rolling total ( sum) of sales numbers. Here is what I use. Iif([Time].CurrentMember.level is [Time].[Week Name], ([Time].currentmember.lastchild, [measures].[cumulative]), Max (descendants ([Time].currentmember, [Time]. [Day Name]), [Measures].[Cumulative])) TIme dimension has this 3 levels- Month, week, day. This function works fine except when there are negative numbers in there. Look at the data below and you will see that total for week 1 is fine. However, Total for Month1 is not right. Can anyone please help me with this. Thank you so much for your help. MOnth1 Week 1 Day1 40,862.76 40,862.76 Day2 - 4,908.98 35,953.78 Day3 - 1,981.43 33,972.36 Day4 - 1,601.47 32,370.88 Day5 - 933.34 31,437.54 Day6 .0 31,437.54 Total 31,437.54 31,437.54 Week 2 - 4,000.00 27,437.54 Week 3 4,000.00 31,437.54 Total 24,481.0 40,862.76 |
#6
| |||
| |||
|
| (Tail(NonEmptyCrossJoin(Descendants( |
#7
| |||
| |||
|
#8
| |||
| |||
|
#9
| |||
| |||
|
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |