![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
With the following select: select non empty {[Measures].[Umsatz]} on columns, non empty [Artikel].[Artikelbezeichnung].Members on rows from [Umsatz] where ([Produktgruppe].[Alle Produktgruppe].[Glasmosaik (11)]) the result is 6 Members. But with the following select: WITH MEMBER Measures.[SKU] AS '[Artikel].CurrentMember.Properties("Artikelnummer")' select non empty {[Measures].[SKU],[Measures].[Umsatz]} on columns, non empty [Artikel].[Artikelbezeichnung].Members on rows from [Umsatz] where ( [Produktgruppe].[Alle Produktgruppe].[Glasmosaik (11)]) the result is AllMembers of [Artikel] , the WHERE clause is ignored. Is there a solution for a result which shows only the 6 members with [Measures].[SKU] and [Measures].[Umsatz] Many thank's to All. Reinfried |
#3
| |||
| |||
|
|
-----Original Message----- The reason you getr "extra" members is because the calc that is equal to a member property is not null, even if blank. Hence the rows are not filtered using NON EMPTY. If the property is numeric, you can use an IIF expression to set it to NULL if property is blank. Also, be aware of the FILTER function, which is the MDX equivelent of SQL WHERE. public @ the domain below www.tomchester.net "Reinfried Englmair" <reinfried.englmair (AT) c-bergmann (DOT) at wrote in message news:21fa01c3fc62$92f4b0d0$a001280a (AT) phx (DOT) gbl... With the following select: select non empty {[Measures].[Umsatz]} on columns, non empty [Artikel].[Artikelbezeichnung].Members on rows from [Umsatz] where ([Produktgruppe].[Alle Produktgruppe].[Glasmosaik (11)]) the result is 6 Members. But with the following select: WITH MEMBER Measures.[SKU] AS '[Artikel].CurrentMember.Properties ("Artikelnummer")' select non empty {[Measures].[SKU],[Measures].[Umsatz]} on columns, non empty [Artikel].[Artikelbezeichnung].Members on rows from [Umsatz] where ( [Produktgruppe].[Alle Produktgruppe].[Glasmosaik (11)]) the result is AllMembers of [Artikel] , the WHERE clause is ignored. Is there a solution for a result which shows only the 6 members with [Measures].[SKU] and [Measures].[Umsatz] Many thank's to All. Reinfried . |
#4
| |||
| |||
|
| With Member [Measures].[SKUText] as |
#5
| |||
| |||
|
|
There is a bug/glitch when using strings in MDX iif() expressions. This has been discussed in the newsgroup. |

|
With Member [Measures].[SKUText] as '[Artikel].CurrentMember.Properties("Artikelnummer")' Member [Measures].[SKU] as 'iif(IsEmpty([Measures].[Umsatz]), NULL, [Measures].[SKUText])' |
![]() |
| Thread Tools | |
| Display Modes | |
| |