MDX subset based on element from alternate hierarchy

Post Reply
rameez
Posts: 7
Joined: Mon Sep 08, 2014 7:43 pm
OLAP Product: TM1
Version: 9.5 10.2 PA
Excel Version: 2010

MDX subset based on element from alternate hierarchy

Post by rameez »

Hi,
I am trying to achieve functionality in PAW view where I have a dimension with default hierarchy and a selector dropdown from the same dimension but different hierarchy. I want to make the view dynamic in a way that when a user makes a selection in the drop down, the view displays only those members that belong to the selection.

Here is an example:
I have a Product dimension which has which has default hierarchy defined as:
Total Product
--Prod1
--Prod2
--Prod3 and so on

Alternate hierarchy Category has a structure:
Total category
--Cat1
----Prod1
----Prod3
--Cat2
----Prod2

I want to to display Prod1, and Prod3 when the user selects Cat1 in the dropdown and display Prod2 when the user selects Cat2.

Thanks for any feedback.
--
TM1 9.5, 10.2, Planning Analytics
Excel 2010, 2013, 2016
Wim Gielis
MVP
Posts: 3118
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.0.9.18
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: MDX subset based on element from alternate hierarchy

Post by Wim Gielis »

Hello,

Try the following. Bring the other hierarchy in the titles section of the view. Use an MDX statement to ge the level 0 descendants of the CurrentMember of the second hierarchy but applied to the elements of the first hierarchy (that will be tricky if not all elements exist in both but you can try - untested).

Alternatively, use a static subset in the first hierarchy but update it with a small TI process. Also untested 😉
Best regards,

Wim Gielis

IBM Champion 2024
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
lotsaram
MVP
Posts: 3654
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: MDX subset based on element from alternate hierarchy

Post by lotsaram »

I don't understand why you don't just already have the alternate hierarchy on the rows?
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
Wim Gielis
MVP
Posts: 3118
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.0.9.18
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: MDX subset based on element from alternate hierarchy

Post by Wim Gielis »

lotsaram wrote: Wed Feb 16, 2022 8:07 am I don't understand why you don't just already have the alternate hierarchy on the rows?
Indeed, very small difference and certainly not worth the extra effort.
Best regards,

Wim Gielis

IBM Champion 2024
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Post Reply