MDX help
Posted: Tue Mar 12, 2013 9:19 am
I have 3 dimensions, year (2012, 2013), month (01, 02, 03, 04) and period (201303, 201304).
I am trying to create a dynamic subset on period such that when user selects Year and Month, it will retrieve the respective periods for that fiscal year.
Fiscal period begins from April to next year March (FY2012 - 201204 ~ 201303).
I also have a "Fiscal Year" attribute in period dimension like this:
Period Fiscal Year
201303 2012
201304 2013
I know that i create the dynamic subset referencing to 1 other dimension but is it possible to do it referencing 2 dimension?
1 dimension example (result is wrong because if user selects year 2013 month 02, it shows all periods of FY2013 which is not what i want)
{TM1FILTERBYLEVEL( {FILTER( {TM1SubsetAll( [cdwPeriod] )}, [cdwPeriod].[Fiscal Year] = [cdwYear].[Fiscal Year])}, 0)}
I am trying to create a dynamic subset on period such that when user selects Year and Month, it will retrieve the respective periods for that fiscal year.
Fiscal period begins from April to next year March (FY2012 - 201204 ~ 201303).
I also have a "Fiscal Year" attribute in period dimension like this:
Period Fiscal Year
201303 2012
201304 2013
I know that i create the dynamic subset referencing to 1 other dimension but is it possible to do it referencing 2 dimension?
1 dimension example (result is wrong because if user selects year 2013 month 02, it shows all periods of FY2013 which is not what i want)
{TM1FILTERBYLEVEL( {FILTER( {TM1SubsetAll( [cdwPeriod] )}, [cdwPeriod].[Fiscal Year] = [cdwYear].[Fiscal Year])}, 0)}