Knut Ivar
2007-04-11 08:22:00 UTC
Hi
I would like to do add a filter on my MDX result... We would only like to
see rows in the result table that have values in the measure
[Measures].[DiseaseCount]. If the [Measures].[DiseaseCount] contain (null) I
would like to remove the row from the result set.
SELECT NON EMPTY { [Measures].[DiseasePctLast12Months],
[Measures].[DiseasePctRegion], [Measures].[DiseasePctLast12MonthsCompany],
[Measures].[DiseasePctLast12MonthsRegion],
[Measures].[DiseasePctLast12MonthsGroup], [Measures].[DiseasePctGroup],
[Measures].[DiseaseCount], [Measures].[DiseasePct],
[Measures].[DiseasePctCompany] } ON COLUMNS, NON EMPTY {
([Harvest].[HarvestID].[HarvestID].ALLMEMBERS *
[Disease].[DiseaseName].[DiseaseName].ALLMEMBERS ) } DIMENSION PROPERTIES
MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM ( SELECT ( {
[Dates].[YearMonthDate].[PeriodMonth].&[2006m06] } ) ON COLUMNS FROM ( SELECT
( { [Harvest].[HarvestID].&[792576] } ) ON COLUMNS FROM [GildeCube])) WHERE (
[Dates].[YearMonthDate].[PeriodMonth].&[2006m06] )
aprox haf of the rows in this result have (null) in the
[Measures].[DiseaseCount].
Does any one have any ide for where to add an filtere to remove the? (If it
was in SQL as I have much experience with, it would be very easy - but in MDX
I am ony an newbe.
in sql the filter would look like this... where isnull(DiseaseCount,0)
Kind Regards
Knut Ivar
I would like to do add a filter on my MDX result... We would only like to
see rows in the result table that have values in the measure
[Measures].[DiseaseCount]. If the [Measures].[DiseaseCount] contain (null) I
would like to remove the row from the result set.
SELECT NON EMPTY { [Measures].[DiseasePctLast12Months],
[Measures].[DiseasePctRegion], [Measures].[DiseasePctLast12MonthsCompany],
[Measures].[DiseasePctLast12MonthsRegion],
[Measures].[DiseasePctLast12MonthsGroup], [Measures].[DiseasePctGroup],
[Measures].[DiseaseCount], [Measures].[DiseasePct],
[Measures].[DiseasePctCompany] } ON COLUMNS, NON EMPTY {
([Harvest].[HarvestID].[HarvestID].ALLMEMBERS *
[Disease].[DiseaseName].[DiseaseName].ALLMEMBERS ) } DIMENSION PROPERTIES
MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM ( SELECT ( {
[Dates].[YearMonthDate].[PeriodMonth].&[2006m06] } ) ON COLUMNS FROM ( SELECT
( { [Harvest].[HarvestID].&[792576] } ) ON COLUMNS FROM [GildeCube])) WHERE (
[Dates].[YearMonthDate].[PeriodMonth].&[2006m06] )
aprox haf of the rows in this result have (null) in the
[Measures].[DiseaseCount].
Does any one have any ide for where to add an filtere to remove the? (If it
was in SQL as I have much experience with, it would be very easy - but in MDX
I am ony an newbe.
in sql the filter would look like this... where isnull(DiseaseCount,0)
0
Thanks For anysuggestion.Kind Regards
Knut Ivar