MDX filter by value
Posted: Fri Apr 01, 2011 9:38 am
Hallo everybody,
I have developed an mdx statement, that should give me all products, that were sold more than 50 times per month within the year 2010.
So the Year-Dim only contains 2010 and the Periode-Dim contains Total,Jan,Feb,Mar,...,Dec. The Subset "dyn_L0" selects only the N-ELements of the Dim Periode, so it provides months.
My problem is that the statement below gives me all products that have unit>50 in Total of the periode, not for the months but for the whole year. It seems that the statement TM1SubsetToSet([Periode], "dyn_L0").CurrentMember does not work. What is wrong?
{FILTER(
{TM1FILTERBYLEVEL( {TM1SUBSETALL( [Product] )}, 0)},
[DB].([Customer].[Total],[Organisation].[Germany],[Organisation IC].[external],[Currency].[LC],[Year].[2010],TM1SubsetToSet([Periode], "dyn_L0").CurrentMember,[DB Measure].[Unit],[Version].[PLAN]) > 50)}
Thank you for any help,
Tobias
I have developed an mdx statement, that should give me all products, that were sold more than 50 times per month within the year 2010.
So the Year-Dim only contains 2010 and the Periode-Dim contains Total,Jan,Feb,Mar,...,Dec. The Subset "dyn_L0" selects only the N-ELements of the Dim Periode, so it provides months.
My problem is that the statement below gives me all products that have unit>50 in Total of the periode, not for the months but for the whole year. It seems that the statement TM1SubsetToSet([Periode], "dyn_L0").CurrentMember does not work. What is wrong?
{FILTER(
{TM1FILTERBYLEVEL( {TM1SUBSETALL( [Product] )}, 0)},
[DB].([Customer].[Total],[Organisation].[Germany],[Organisation IC].[external],[Currency].[LC],[Year].[2010],TM1SubsetToSet([Periode], "dyn_L0").CurrentMember,[DB Measure].[Unit],[Version].[PLAN]) > 50)}
Thank you for any help,
Tobias