![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Deepak, I didn´t get an error. Simply I have a MDX1 logic for Corporation1, and other (MDX2) for Corporation2 In the same Cube I must implement 2 logics, one working for Co1 and other for Co2. Sepparately all works fine. You want to know what is the real values? Well, here is my code in english: iif ( [Enterprise].CurrentMember.Uniquename = [Store El S.A.].Uniquename ------ -----THIS LINE I´M TRYING iif(isleaf([Product].currentmember), -- <-------MDX1 iif( [Measures].[C Area] = 0, null, [Measures].[S Area] / [Measures].[C Area] ), Sum([Product].CurrentMember.children) ), iif( -- <-------MDX2 [Measures].[C Area] = 0, null, [Measures].[S Area] / [Measures].[C Area] ) ) The LINE marked is the discriminant I must implement to follow MDX 1 or MDX2 The value for dimension Enterprise is [Store El S.A.] The value in fact Table is '02' (and for other enterprise is '03', only have 2 enterprises) How can I implement some comparisson? -- Message posted via SQLMonster.com http://www.sqlmonster.com/Uwe/Forums...-olap/200507/1 |
#6
| |||
| |||
|
|
Hi, I have an MDX code that works for Corporation1, and have other than works for Corporation2 I want to implement a discrimiant like this: iif( [DimEnterprise].actual_member_value = corporation1 code for corporation 1>, code fro corporation 2 ) How can I implement this discriminant? Thanks! -- Message posted via http://www.sqlmonster.com |
#7
| |||
| |||
|
|
You mean something like: iif([DimEnterprise].actual_member_value = corporation1, StrToValue(MDX1), StrToValue(MDX2)) ? "Andrew A via SQLMonster.com" <forum (AT) SQLMonster (DOT) com> wrote in message news:51B473A8E7302 (AT) SQLMonster (DOT) com... Hi, I have an MDX code that works for Corporation1, and have other than works for Corporation2 I want to implement a discrimiant like this: iif( [DimEnterprise].actual_member_value = corporation1 code for corporation 1>, code fro corporation 2 ) How can I implement this discriminant? Thanks! -- Message posted via http://www.sqlmonster.com |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Hello. I tried this line according to Foodmart Example. It still doesn´t use de MDX1 (of code: iif discriminant = true, MDX1, MDX2) The discriminant I use is [DimEnterprise].CurrentMember.properties("caption") = "Store El S.A." with no result using MDX1 The value in pivot Table is Store El S.A. But in database is 02 I suppose with this code when I browse in Store EL S.A. see MDX1 result, but when browse in Store EL SA children, not see this MDX. So if it works I´ll need to implement an addicional code for browsing children and parent. I ask then If there is a way to use a discriminant according to database value in stead of pivot table value. Thanks. -- Message posted via SQLMonster.com http://www.sqlmonster.com/Uwe/Forums...-olap/200507/1 |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |