![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The LookUpcubeb need a MDX statemement as the reference to the cells in the cube I want to get data from. This is OK if I need to get just one value, however do anyone have an example of using this function more dynamic across several dimensions. See below - which I don't think is a nice example: IIf([Period].CurrentMember.Name = "Jan", LookupCube("Portefolio", "([Scenario].[Actual],[Period].[Jan])"), IIf([Period].CurrentMember.Name = "Feb", LookupCube("Portefolio", "[Scenario].[Actual],[Period].[Feb])"), IIf([Periode].CurrentMember.Name = "Mar", LookupCube("Portefolio", "([Scenario].[Actual],[Period].[Mar])"), ....... |
#3
| |||
| |||
|
|
Hi Bjorn, How's this (on Foodmart 2000)? WITH MEMBER MEASURES.DEMO AS 'LOOKUPCUBE("WAREHOUSE", "([Measures].[Store Invoice], " + TIME.CURRENTMEMBER.UNIQUENAME + ")")' SELECT {MEASURES.[UNIT SALES], MEASURES.DEMO} ON 0, TIME.MEMBERS ON 1 FROM SALES I don't recommend using LookUpCube though, unless you absolutely have to - it can cause query performance problems. Using a virtual cube instead is a much better idea. Regards, Chris -- Blog at: http://spaces.msn.com/members/cwebbbi/ "Bj?rn Tingstadengen" wrote: The LookUpcubeb need a MDX statemement as the reference to the cells in the cube I want to get data from. This is OK if I need to get just one value, however do anyone have an example of using this function more dynamic across several dimensions. See below - which I don't think is a nice example: IIf([Period].CurrentMember.Name = "Jan", LookupCube("Portefolio", "([Scenario].[Actual],[Period].[Jan])"), IIf([Period].CurrentMember.Name = "Feb", LookupCube("Portefolio", "[Scenario].[Actual],[Period].[Feb])"), IIf([Periode].CurrentMember.Name = "Mar", LookupCube("Portefolio", "([Scenario].[Actual],[Period].[Mar])"), ....... |
![]() |
| Thread Tools | |
| Display Modes | |
| |