Rules calculation for different level elements

Post Reply
Daniel
Posts: 6
Joined: Mon Jul 11, 2016 11:23 pm
OLAP Product: cognos tm1
Version: 10.2.
Excel Version: 2013

Rules calculation for different level elements

Post by Daniel »

Hi All!

Dimension:Time ( months, years), dimension with measures( sales quantity, percentage)

At the moment I have been trying to write a rule to calculate a percentage for each month based on the total year quantity ( month/year = %), where each year should be 100%,
however, I do not know how to make level based calculations in TM1 rules, so I would not have to write it separately for each year.

Could anyone please give me peace of advice if there are other ways how to perform that in rules?

Thank You

Regards

Danielle
Wim Gielis
MVP
Posts: 3240
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: Rules calculation for different level elements

Post by Wim Gielis »

Please provide the actual rules, as well as screenshots of the dimensions and cube involved.
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
Bakkone
Posts: 119
Joined: Mon Oct 27, 2014 10:50 am
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2013

Re: Rules calculation for different level elements

Post by Bakkone »

I might be reading your question wrong but wouldn't something simple like this work:


['Percentage'] = N: ['Quantity'] / DB( 'Cubename', ELPAR( 'Time', !Time, 1 ), 'Quantity' ) ;

FEEDERS;

['Quantity'] => ['Percentage'] ;



If this works then I really recommend you read through OF the basics. Try the online courses that IBM produces. Or borrow a copy of the TM1 cookbook from the library.
Post Reply