![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Based on testing with the Foodmart Warehouse cube, this version of Custom Rollup at 2nd level works: Tail(NonEmptyCrossJoin(Descendants( [DateDimension].CurrentMember,,LEAVES))).Item(0) Another option is to modify [Last Non Empty Value]: iif(IsLeaf([DateDimension].CurrentMember), CoalesceEmpty((Measures.[Value]) , (Measures.[Last Non Empty Value], [DateDimension].PrevMember)), ([Measures].[Last Non Empty Value], Tail(Descendants( [DateDimension].CurrentMember,,LEAVES)).Item(0))) - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Can you give an example of "when CurrentMember is not leaf and hasn't any children" - when a member has no children, shouldn't it be a leaf member? - 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
| |||
| |||
|
| With member [Measures].[Last Sales] as |
|
I mean it doesn't have children with data. For example there are no any sales on January 1 and January 2 (Hours for these days contain NULL measure values) "Deepak Puri" <deepak_puri (AT) progressive (DOT) com> wrote in message news:uqcbuHRFFHA.464 (AT) TK2MSFTNGP09 (DOT) phx.gbl... Can you give an example of "when CurrentMember is not leaf and hasn't any children" - when a member has no children, shouldn't it be a leaf member? - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
![]() |
| Thread Tools | |
| Display Modes | |
| |