![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a cube with a Time dimension where non-leaf data is visible. So an extract from the dimension would be 2004 --2004 data --Jan --Feb --etc 2005 --2005 data --Jan --Feb --Mar This interferes with the lag function. So [2005].[Mar].Lag(3) returns [2005].[2005 data] when I was hoping for [2004].[Dec]. Is there any way round this? |
#3
| |||
| |||
|
| Newsgroups: microsoft.public.sqlserver.olap |
#4
| |||
| |||
|
|
I have a cube with a Time dimension where non-leaf data is visible. So an extract from the dimension would be 2004 --2004 data --Jan --Feb --etc 2005 --2005 data --Jan --Feb --Mar This interferes with the lag function. So [2005].[Mar].Lag(3) returns [2005].[2005 data] when I was hoping for [2004].[Dec]. Is there any way round this? |
#5
| |||
| |||
|
|
Dave, How about just using .lag(4) to skip over the aggegate [2005 data]? Jim "Dave Morrow" wrote: I have a cube with a Time dimension where non-leaf data is visible. So an extract from the dimension would be 2004 --2004 data --Jan --Feb --etc 2005 --2005 data --Jan --Feb --Mar This interferes with the lag function. So [2005].[Mar].Lag(3) returns [2005].[2005 data] when I was hoping for [2004].[Dec]. Is there any way round this? |
![]() |
| Thread Tools | |
| Display Modes | |
| |