Spread values from string picklist

Post Reply
tobtm1
Posts: 19
Joined: Tue Feb 17, 2015 1:01 pm
OLAP Product: TM1
Version: 10.1
Excel Version: 2010

Spread values from string picklist

Post by tobtm1 »

Hi gurus,

To simplify, consider the following setup:

Dimensions

Product
Year
Month
Measure

The measuredimensions consists of one picklistelement (string) and one value called volume. If the user set the picklistelement to "Hello" under "2015" and "All Month" (stacked columns) then "Hello" should automatically be populated down to all single Months for that particular year (2015). In other words - spreading a string value. Do I need a rule for this? Any ideas?

Thank you for any replies...
TrevorGoss
Community Contributor
Posts: 217
Joined: Thu Aug 15, 2013 9:05 am
OLAP Product: TM1
Version: 10.2.1.1
Excel Version: 14.0.6129.5000

Re: Spread values from string picklist

Post by TrevorGoss »

Hello,

If you are only using cubes, then yes you would need to use Rules. It sounds as if you have conditions which need to be met, so IF statements would need to be used.

If you are in applications web, you could use a TI which runs after an event, such as the commit event, the TI could populate the cube according to the picklist choice, but if you are only using cubes, then yes, Rules are needed.

Trevor.
tobtm1
Posts: 19
Joined: Tue Feb 17, 2015 1:01 pm
OLAP Product: TM1
Version: 10.1
Excel Version: 2010

Re: Spread values from string picklist

Post by tobtm1 »

Thanks for your thoughts but ok, if rules are needed, how should that rule look like? That is my problem...

Thanks for any replies!
rmackenzie
MVP
Posts: 733
Joined: Wed May 14, 2008 11:06 pm

Re: Spread values from string picklist

Post by rmackenzie »

This is just air-coding so take with a pinch of salt, but something like this might get you going:

Code: Select all

['Volume'] = S:
  IF ( DTYPE ( 'Month', !Month ) @= 'N', 
    DB ( 'YOUR CUBE', !Product, !Year, 'All Months', !Measure ), 
    STET );
What did you try already?
Robin Mackenzie
Post Reply