CurrentMember in CAFE
Posted: Thu Sep 08, 2016 2:04 pm
Hi,
I have a usual requirement in an OPEX cube when a user selects a Cost Center from the title dimension, only the relevant Expense lines should appear on the rows. We have done this many times in Web an Perspectives, worked fine. There is a small parameter cube with Cost Centers and Expenses, put a 1 to the relevant combinations, then use a subset like this in the planning cube, while having CCs on title, Expenses on rows:
{FILTER(TM1FILTERBYLEVEL(TM1SUBSETALL([Accounts_OPEX_PLAN]) , 0) , [PLAN_Param_CCToGL].([CostCenters_OPEX].CURRENTMEMBER,[StrNum].[nValue]) = 1)}
It seems CAFE ignores the "[CostCenters_OPEX].CURRENTMEMBER" part of the subset, and returns those Expenses of which Sum is 1 in the parameter cube => so those expenses that are assigned to one and only one Cost center, independently from the Cost center selection on the title.
Any idea of a quick workaround? Same results but different mdx code?
Thank you!
Matyas
I have a usual requirement in an OPEX cube when a user selects a Cost Center from the title dimension, only the relevant Expense lines should appear on the rows. We have done this many times in Web an Perspectives, worked fine. There is a small parameter cube with Cost Centers and Expenses, put a 1 to the relevant combinations, then use a subset like this in the planning cube, while having CCs on title, Expenses on rows:
{FILTER(TM1FILTERBYLEVEL(TM1SUBSETALL([Accounts_OPEX_PLAN]) , 0) , [PLAN_Param_CCToGL].([CostCenters_OPEX].CURRENTMEMBER,[StrNum].[nValue]) = 1)}
It seems CAFE ignores the "[CostCenters_OPEX].CURRENTMEMBER" part of the subset, and returns those Expenses of which Sum is 1 in the parameter cube => so those expenses that are assigned to one and only one Cost center, independently from the Cost center selection on the title.
Any idea of a quick workaround? Same results but different mdx code?
Thank you!
Matyas