Dynamic subset in TM1

Post Reply
phathoang149
Posts: 6
Joined: Sat Oct 19, 2013 8:43 am
OLAP Product: IBM cognos TM1
Version: 10.1.1
Excel Version: 2007

Dynamic subset in TM1

Post by phathoang149 »

Hello everyone
I want create dynamic subset.

I Have [Cube 1] and [Cube 2] the same image:
Image
Image
I Want create dynamic subset for [number] demention by expresstion window MDX
Purpose: when I select A in CUBE 2, CUBE 2 only dislay [number]: 1,2,4,6,8,10 as data from CUBE 1
Image
When I select B in CUBE 2, CUBE 2 only dislay [number]: 3,5,7,9,10 as data from CUBE 1
Thanks
Last edited by phathoang149 on Sat Oct 19, 2013 4:47 pm, edited 3 times in total.
phathoang149
Posts: 6
Joined: Sat Oct 19, 2013 8:43 am
OLAP Product: IBM cognos TM1
Version: 10.1.1
Excel Version: 2007

Re: HELP ME! DYNAMIC SUBSET IN TM1

Post by phathoang149 »

Help me! Please
Wim Gielis
MVP
Posts: 3223
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: HELP ME! DYNAMIC SUBSET IN TM1

Post by Wim Gielis »

phathoang149 wrote:Help me create dynamic subset.
Is this a command, or do you have a friendly question?
phathoang149 wrote:Help me! I'm really Worry.
You mean "worried" ?
And why? it is only TM1, it's not about life and death.

Did you pay attention to the forum rules? And to other general etiquette at online forums?
It's inappropriate to USE CAPITALIZED LETTERS. IT LOOKS LIKE YOU ARE SCREAMING, ISN'T IT ?
Why do you put "HELP ME" in the topic title? Do you think you will be better served?

By the way, most people enjoy their weekend, forum activity is quite low. Bumping is not needed.

In the meantime, what did you do to solve your own question?
Best regards,

Wim Gielis

IBM Champion 2024-2025
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
phathoang149
Posts: 6
Joined: Sat Oct 19, 2013 8:43 am
OLAP Product: IBM cognos TM1
Version: 10.1.1
Excel Version: 2007

Re: HELP ME! DYNAMIC SUBSET IN TM1

Post by phathoang149 »

Wim Gielis wrote:
phathoang149 wrote:Help me create dynamic subset.
Is this a command, or do you have a friendly question?
phathoang149 wrote:Help me! I'm really Worry.
You mean "worried" ?
And why? it is only TM1, it's not about life and death.

Did you pay attention to the forum rules? And to other general etiquette at online forums?
It's inappropriate to USE CAPITALIZED LETTERS. IT LOOKS LIKE YOU ARE SCREAMING, ISN'T IT ?
Why do you put "HELP ME" in the topic title? Do you think you will be better served?

By the way, most people enjoy their weekend, forum activity is quite low. Bumping is not needed.

In the meantime, what did you do to solve your own question?
Thanks your command,If you know my problem, please help me! Thanks so much!
java_to_tm1
Posts: 33
Joined: Mon Sep 23, 2013 3:24 pm
OLAP Product: TM1
Version: 10.2
Excel Version: Excel 2010

Re: Dynamic subset in TM1

Post by java_to_tm1 »

Seems to me that static subsets should do the job?

Open subset editor, select the elements you want ( 1,2,4,6,8,10), remove other elements, and save the subset as A.
Rinse and repeat for subset B.

Why would you need "dynamic" subsets for this?
The Java_to_TM1 Convert
TM1 Version 10.1, 10.2, Cognos Insight 10.1, 10.2
Local: Windows 7 Professional, Excel 2007
Server: Windows Server 2008 64-bit
p.s. I have a healthy disregard for Performance Muddler.
phathoang149
Posts: 6
Joined: Sat Oct 19, 2013 8:43 am
OLAP Product: IBM cognos TM1
Version: 10.1.1
Excel Version: 2007

Re: Dynamic subset in TM1

Post by phathoang149 »

java_to_tm1 wrote:Seems to me that static subsets should do the job?

Open subset editor, select the elements you want ( 1,2,4,6,8,10), remove other elements, and save the subset as A.
Rinse and repeat for subset B.

Why would you need "dynamic" subsets for this?

Thanks your command.
- IF I use static subset, I can't autoupdate element when i insert element number in dimension. And can't filter number when I select A or B in cube 2.

But my problem is:
- I create 1 dynamic subset is name [Dynamic A] with MDX
Image
- I create view in Cube 2 use subset [Dynamic A]
- When i select A, number dislay 1,2,4,6,8,10 as image
Image
-But when i select B,number dislay 1,2,4,6,8 ,10 not 3,5,7,9. In cube 1 numer for type B is 3,5,7,9
Image

can you help me only 1 dynamic subset i can filter A, B in cube 1 when I select A or B in cube 2. Thanks so much.
lotsaram
MVP
Posts: 3698
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Dynamic subset in TM1

Post by lotsaram »

Have you tried using the CurrentMember property of the "Type" dimension? As long as the element name is an exact match to the cube cell value and not an alias then I see no reason why this shouldn't work.
phathoang149
Posts: 6
Joined: Sat Oct 19, 2013 8:43 am
OLAP Product: IBM cognos TM1
Version: 10.1.1
Excel Version: 2007

Re: Dynamic subset in TM1

Post by phathoang149 »

lotsaram wrote:Have you tried using the CurrentMember property of the "Type" dimension? As long as the element name is an exact match to the cube cell value and not an alias then I see no reason why this shouldn't work.
I don't understand your idea. You can help me MDX? Thanks you so much!
BariAbdul
Regular Participant
Posts: 424
Joined: Sat Mar 10, 2012 1:03 pm
OLAP Product: IBM TM1, Planning Analytics, P
Version: PAW 2.0.8
Excel Version: 2019

Re: Dynamic subset in TM1

Post by BariAbdul »

Hi phathoang149 ,This is very good MDX resource/doc,Please go through it.

http://goo.gl/hN9j4R

Thanks
"You Never Fail Until You Stop Trying......"
phathoang149
Posts: 6
Joined: Sat Oct 19, 2013 8:43 am
OLAP Product: IBM cognos TM1
Version: 10.1.1
Excel Version: 2007

Re: Dynamic subset in TM1

Post by phathoang149 »

BariAbdul wrote:Hi phathoang149 ,This is very good MDX resource/doc,Please go through it.

http://goo.gl/hN9j4R

Thanks

I read it, but i can't solve my problem, help me?
declanr
MVP
Posts: 1827
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: Dynamic subset in TM1

Post by declanr »

phathoang149 wrote:
BariAbdul wrote:Hi phathoang149 ,This is very good MDX resource/doc,Please go through it.

http://goo.gl/hN9j4R

Thanks

I read it, but i can't solve my problem, help me?

Your MDX query is almost dynamic in the way you want it but the "A" is hardcoded... so you need to make the A dynamic... Lotsaram has directed you to the currentmember function and BariAbdul has directed you to a comprehensive explanation of TM1 MDX. You have all the pieces you need, now you just need to slot them together - what have you tried since receiving these 2 pieces of information?
Declan Rodger
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Dynamic subset in TM1

Post by tomok »

If Cube A was an attribute cube, instead of a regular cube, then it would be quite easy and your MDX would look something like:

Code: Select all

{FILTER( {TM1SUBSETALL( [Number] )}, [Number].[Type] = [Type].CurrentMember)}
You may have to play with the syntax but the concept should work.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
Post Reply