How to create dynamic subset based on selected title element

Post Reply
karuso_25
Posts: 3
Joined: Sun Apr 10, 2011 3:06 am
OLAP Product: COGNOS TM 1
Version: v.9.5
Excel Version: 2007

How to create dynamic subset based on selected title element

Post by karuso_25 »

How will I create Dynamic Subset to narrow list of elements based on selected Cube Title Element.

Sample:

Product Dim:
A
B
C
D

Store:
1
2
3
4

Cube 1: Product - Store Mapping
1 2 3
A Y N Y
B N Y N
C N N Y
D Y Y N
E Y Y Y


Sales Cube:
If I select Store 1, the subset of product should display A, D and E only.
If I select Store 2, the subset of product should display B, D and E only.

This should be on the cube viewer only.

{Admin Note: Moved from Bugs to the general TM1 forum following the highly apt quote of the week from Lotsaram.}
lotsaram
MVP
Posts: 3706
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: How to create dynamic subset based on selected title ele

Post by lotsaram »

Not knowing how to do something does not make it a bug.

What you want to do is easily achievable in Excel or a websheet and can be done in only the cube viewer but can't be achieved within a single cube view (using 2 views it would be possible but then what would be the point?)
karuso_25
Posts: 3
Joined: Sun Apr 10, 2011 3:06 am
OLAP Product: COGNOS TM 1
Version: v.9.5
Excel Version: 2007

Re: How to create dynamic subset based on selected title ele

Post by karuso_25 »

My bad. This is not a bug. I put it on a wrong forum.

But I already made this using this kind of filter.

{ FILTER( {TM1SUBSETALL( [DIM to Filter] )}, [Cube Mapping].([DIM as Filter].CurrentMember,[Cube Mapping Measure].[nTag]) > 0) }

That's it.

Thanks a lot!
Last edited by karuso_25 on Tue Jul 09, 2013 7:19 am, edited 1 time in total.
Roei
Posts: 1
Joined: Tue Aug 14, 2012 5:12 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2007

Re: How to create dynamic subset based on selected title ele

Post by Roei »

Hi,

I'm having the same problem.
Can you please describe what is each of the variables?
You can use your own example.

Regards,
Roei
karuso_25
Posts: 3
Joined: Sun Apr 10, 2011 3:06 am
OLAP Product: COGNOS TM 1
Version: v.9.5
Excel Version: 2007

Re: How to create dynamic subset based on selected title ele

Post by karuso_25 »

Roei wrote:Hi,

I'm having the same problem.
Can you please describe what is each of the variables?
You can use your own example.

Regards,
Roei

I created a mapping cube (say Cube Mapping) where dimensions are Product, Store and a measure(say nTag).

{ FILTER( {TM1SUBSETALL( [DIM to Filter] )}, [Cube Mapping].([DIM as Filter].CurrentMember,[Cube Mapping Measure].[nTag]) > 0) }

DIM to Filter = Product
Cube Mapping = created mapping cube
DIM as Filter = Store
Cube Mapping Measure = measure dimension of created mapping cube

Save the subset in DIM to Filter.

In other cube containing Product and store, set product(with above subset) as row dimension and store as title dimension, this should be able to narrow the list based on store.
mvaspal
Community Contributor
Posts: 341
Joined: Wed Nov 03, 2010 9:16 pm
OLAP Product: tm1
Version: 10 2 2 - 2.0.5
Excel Version: From 2007 to 2013
Location: Earth

Re: How to create dynamic subset based on selected title ele

Post by mvaspal »

Hi

I have just created a similar dynamic subset. Does anyone know if we can make it work somehow so that both the Dim To Filter and the Dim as Filter are on title?
In the example above, if I select a store, I would like to see the list of products sold in that store, but both stores and products should be title dimensions.

Thanks
Matyas


UPDATE: it seems to be working in Performance Modeler (10.2) but not in Cube Viewer, TM1 Web, and Contributor (also 10.2).
Post Reply