![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I would like to use lookupcube to access to one more cube. I could not specify time range in lookupcube functions. the following is not working. If I just specify a year (2002), it works. with MEMBER [Measures].[ManHours] AS 'LookupCube("Cube_Extra", "(" + "[Dim_Time].[Year - Quarter - Month - actualDate].[Year].&[2002].&[2]: [Dim_Time].[Year - Quarter - Month - actualDate].[Year].&[2002].&[12]" + ", [Measures].[manHoursWorkedTotal])" ) ' thanks, Guangming |
#3
| |||
| |||
|
|
you'll need to be referencing the time dimension member of the cube you are currently in ( let's say cube [Current Cube] that has a time dimension like this [Time].[CurrentMember ) and hopefully both cubes have the same naming for the time dimension: so your calc should look something like this: MEMBER [Measures].[ManHours] AS ' LookupCube( "Cube_Extra", "(" + MemberToString([Time].CurrentMember) + ", [Measures].[manHoursWorkedTotal])" ) ' "Word 2003 memory Leakage" wrote: Hi, I would like to use lookupcube to access to one more cube. I could not specify time range in lookupcube functions. the following is not working. If I just specify a year (2002), it works. with MEMBER [Measures].[ManHours] AS 'LookupCube("Cube_Extra", "(" + "[Dim_Time].[Year - Quarter - Month - actualDate].[Year].&[2002].&[2]: [Dim_Time].[Year - Quarter - Month - actualDate].[Year].&[2002].&[12]" + ", [Measures].[manHoursWorkedTotal])" ) ' thanks, Guangming |
![]() |
| Thread Tools | |
| Display Modes | |
| |