Page 1 of 1

CurrentMember in CAFE

Posted: Thu Sep 08, 2016 2:04 pm
by mvaspal
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

Re: CurrentMember in CAFE

Posted: Thu Sep 08, 2016 11:01 pm
by paulsimon
HI

I would suggest creating a dimension from your cube with consolidations for each Cost Centre and base level elements of the relevant Expense codes. Then you don't even need MDX. You can use a simple list with ELCOMP.

Regards

Paul Simon

Re: CurrentMember in CAFE

Posted: Fri Sep 09, 2016 8:19 am
by mvaspal
Thanks Paul!
Actually, that is one of my main points to consider if I want to use one merged, or two dimensions, found some pros/cons for both. If I understand correctly your suggestion means the one dimension approach.

Re: CurrentMember in CAFE

Posted: Fri Sep 09, 2016 3:58 pm
by paulsimon
Hi

No I am not suggesting that you need to convert your cube to a single combined dimension. I was suggesting that you create a dimension that is not used in any cubes and that you just use this to drive the dependency between the two dimensions for your second drop down box.

Regards

Paul Simon

Re: CurrentMember in CAFE

Posted: Fri Sep 09, 2016 5:21 pm
by PavoGa

Code: Select all

{FILTER(TM1FILTERBYLEVEL(TM1SUBSETALL([Accounts_OPEX_PLAN]) , 0) , [PLAN_Param_CCToGL].([CostCenters_OPEX].CURRENTMEMBER,[StrNum].[nValue]) = 1)}
Since the CostCenters_OPEX is a title dimension, the [CostCenters_OPEX].CURRENTMEMBER is not needed for a cube view. It will automatically filter it for the context of the title dimension, the cost center selected.

Re: CurrentMember in CAFE

Posted: Fri Sep 09, 2016 6:23 pm
by mvaspal
Hi
It will automatically filter it for the context of the title dimension, the cost center selected.
Not in CAFE unfortunately

Re: CurrentMember in CAFE

Posted: Mon Sep 12, 2016 2:12 pm
by PavoGa
Ah. My apologies.

Re: CurrentMember in CAFE

Posted: Fri Sep 16, 2016 3:22 pm
by mvaspal
Hi
Seems to be a bug, if I open the subset editor in CAFE, click on the MDX icon, and amend the subset by just adding a simple space, it starts working.
So I think it won't be related to CurrentMember, much more how CAFE renders the dynamic subset, although not sure yet what kind of mdx expressions/formulas are impacted, if it is not only CurrentMember

Ticket opened, I will post the APAR nr here.