Re: Switch MDX according to VALUE
- From: "E\(lad\)" <EladZZZ7690@xxxxxxxxxxxxxx (Remove ZZZ for email)>
- Date: Thu, 28 Jul 2005 15:35:10 +0200
1)
I need you to post the entire MDX, not just the IIF part.
2)
Is this a calculated member? If so, under which dimension is it stored?
If it is stored under the Measures dimension,
Sum([Product].CurrentMember.Children) won't work because you need explicitly
say according to which numeric value you wish to Sum.
Something like: Sum([Product].CurrentMember.Children, [C Area])
Elad
"Andrew A via SQLMonster.com" <forum@xxxxxxxxxxxxxx> wrote in message
news:51F4620D9BB2E@xxxxxxxxxxxxxxxxx
>
> Hi Elad,
>
> I followed your advice entering to MDX Sample Application, find "STORE EL"
> and have this value:
> [Enterprise].[All Enterprise].[STORE EL]
>
> Comparing:
> [Enterprise].CurrentMember is [Enterprise].[All Enterprise].[STORE EL]
>
> Posted my MDX.
>
> iif
> (
> -- [Enterprise].CurrentMember is [Enterprise].&[STORE EL],
> -- [Enterprise].CurrentMember.level.name = "STORE EL",
> -- [Enterprise].CurrentMember.name = "02",
> -- [Enterprise].CurrentMember.Uniquename = [STORE EL].Uniquename ,
> -- [Enterprise].CurrentMember.properties("caption") = "STORE EL",
> -- [Enterprise].CurrentMember is [Enterprise].[Enterprise].&[STORE EL],
> [Enterprise].CurrentMember is [Enterprise].[All Enterprise].[STORE EL],
> iif(isleaf([Linea].currentmember),
> iif(
> [Measures].[C Area] = 0,
> null,
> [Measures].[S Area] / [Measures].[C Area]
> ),
> Sum([Product].CurrentMember.children)
> ),
> iif(
> [Measures].[C Area] = 0,
> null,
> [Measures].[S Area] / [Measures].[C Area]
> )
> )
>
> Enterprise, is a Dimension that have Children (some stores)
> Line is a dimension that only have ALL LEVEL and a Few Lines, that I want
> to
> Sum for STORE EL and want only to make Average for STORE ADAMS
> Resuming the problem, this line:
> [Enterprise].CurrentMember is [Enterprise].[All Enterprise].[STORE EL]
> must return true to enter to one MDX1 (STORE EL) and false to return to
> MDX2
> (STORE ADAMS)
>
>
> --
> Message posted via http://www.sqlmonster.com
.
- References:
- Switch MDX according to VALUE
- From: Andrew A via SQLMonster.com
- Re: Switch MDX according to VALUE
- From: Andrew A via SQLMonster.com
- Re: Switch MDX according to VALUE
- From: Andrew A via SQLMonster.com
- Re: Switch MDX according to VALUE
- From: Andrew A via SQLMonster.com
- Switch MDX according to VALUE
- Prev by Date: "register" button grayed out
- Next by Date: Re: Switch MDX according to VALUE
- Previous by thread: Re: Switch MDX according to VALUE
- Next by thread: Re: Switch MDX according to VALUE
- Index(es):
Relevant Pages
|