TM1 Tutorials.com

Implementing TM1 since 2005

  • Home
  • CubeSpy TM1 Monitor
  • Share Your Knowledge!
RSS
Tag Archives: TM1 Cube Rules

Back to Basics – Regions in Rules

Posted on July 29, 2012 by Ben Hill
No Comments

If there is one basic technical best practise which makes TM1 Solutions more straight-forward thus sustainable which is most often not utilised it is #Regions in cube rules. Regions work the same way as grouping rows within Microsoft Excel, except the grouping is done automatically around a set of key words. This is actually a feature in many scripting environments and is called code folding, it is added to a rule like so:

#Region *The title of this region goes here*
*Rules go here*
#EndRegion

You can even add regions within regions. Like so:

#Region 1. Sales Rules
	#Region 1.1 Revenue
		['Revenue'] = N: ['Units'] * ['Price'];
	#EndRegion
	#Region 1.2 COGS
		['COGS'] = N: ['Units'] * ['Standard Cost'];
	#EndRegion
#EndRegion

This example could also extend to showing the corresponding feeders with the same format: “#Region 1. Sales Feeders”.

Check out the gallery below to see just how much more readable this rule is:

TM1 Cube rule with regions collapsed
TM1 Cube rule with regions collapsed
TM1 Cube rule with regions partially expanded
TM1 Cube rule with regions partially expanded
TM1 Cube rule with regions expanded
TM1 Cube rule with regions expanded


If you would like assistance developing Turbo Integrator Processes or Cube Rules for your TM1 Solution, the friendly team of Consultants at InfoCube Consulting Australia can help. Enter your details in the contact form here.

 

Categories: Code Sample - Downloadable, IBM Cognos Express, IBM Cognos Insight, IBM Cognos TM1, TM1 10.1, TM1 pre 10.1, Training Material | Tags: Code Folding, Cube Rules, IBM Cognos Express, IBM Cognos TM1, Region, Sales Calculations, TM1 Best Practise, TM1 Cube Rules, TM1 Development

Rolling Forecast in IBM Cognos TM1

Posted on July 10, 2012 by David Payten
1 Comment

Recently, a client has asked to implement a rolling forecast model to move towards a more dynamic way of forecasting so as the periods move forward so does your forecast so you are always forecasting 12 / 18 months out in to the future.

With a rolling forecast the number of periods remain the same so as each period is traded it drops out of the forecast and another period is added. This is best shown with a diagram:

In TM1, this can be easily achieved using a period slider rule. To enable this functionality  the user simply updates the current month string in a global assumptions cube to start the forecast, this in turn updates a rule attached to a period slider dimension which updates the attribute values for those months within the period dimension. The business rule attached to Cube B then pulls data from “Cube A” Actual’s based on the attribute values for those periods and populates values in Cube B for Current Forecast Periods. Note that Actual’s are against real periods in Cube A ( i.e. Dec 2011 instead of m-1, the rule translates real month Dec 2011 into an “m-x’ month and updates the period description using an alias mask being the real period name ). See Ouput below:

Turning on the Alias for the Period Description below for Cube B below:

 

 

 

 

 

How the slider rule works (translate sliding period i.e Dec 2011 into sliding period i.e m-1 ). See embedded pseudo code in rule below:

Output in Period_slider attribute cube:

Now that you have an idea of the workings, the only real challenge that remains is to encourage/influence management to think outside the box and adopt a different way of thinking when approaching the forecast, one that I imagine is a mere walk in the park.

Enjoy! See attached for full download of above including cubes and rules.

Data PeriodSlider.zip

Categories: Code Sample - Downloadable, IBM Cognos Express, IBM Cognos TM1, TM1 10.1, TM1 pre 10.1, Training Material, Uncategorized | Tags: Corporate Planning, Forecasting in TM1, IBM Cognos TM1, Rolling Forecasts, TM1 Cube Rules

3 Types of Rules TM1 Developers should know

Posted on August 17, 2011 by Ben Hill
3 Comments

We’ve gone through our notes for training our staff and aside from basic equation rules we have listed three classes of common rules which TM1 Developers should be familiar with. If you haven’t ever had to write one of these rules before, you should try it – it would be good practice, because we’ve all seen [‘Sales $’] = N: [‘Units’] * [‘Price’] example far too many times!

I’ve boiled it down to 3 types of rules which every consultant should at least know how to write.

  • Allocation/Phase Rule – e.g. Allocate our budgeted sales across States based on the Actual Sales ratio.
  • Rolling Value Rule – e.g. Opening (Measure) is equal to the Closing of the prior period. Often used in Balance Sheet or Depreciation rules.
  • Averaging Rule (C Level) – e.g. Averaging Percentages or Rates up all hierarchies within the cube.

As with TM1 and Platform Software in general, there is a million ways to do anything, so don’t be upset if we don’t follow your exact methodology.

Read more …

Categories: IBM Cognos TM1 | Tags: Allocation, Developer, IBM Cognos TM1, Phasing, TM1 Consultants, TM1 Cube Rules
  • Authors Profiles

    Regular Authors:







    Guest Authors:
  • TM1 Tutorials Pages

    • CubeSpy TM1 Monitor
    • Share Your Knowledge!
  • Recent Posts

    • Woohoo! TM1 Tuts has cracked 100,000 visits!
    • Your Lifeline, The TM1 Transaction Log
    • Creating basic Top 10 reports using MDX expression
    • How to write easily understood Turbo Integrator code
    • Broken Transaction Log?
    • Removing old TM1 Servers from “Services”
    • Turbo Integrator Syntax Highlighter (Notepad++)
    • Messaging users of IBM Cognos TM1
    • Back to Basics – Regions in Rules
    • Cognos Insight – Aligning using the Grid
    • Automating Data Transfers between TM1 Servers
    • TM1 10.1 – IBM Cognos Insight Review Pt 2
    • The [Black Box] Killer
    • Free Trial of Cognos Insight – Big Data Analytics
    • TM1 Contributor – Single Security Hierarchy
  • TM1 Tutorials Links

    • Analytics Zone for all things about Cognos Insight and a free trial version.
    • InfoCube Premier Management Consulting on Cognos Products
    • Report Ready – and Waiting! Report Distribution Management – Track PDF Report Consumption by Channel
    • TM1 Networking – Sydney Meetup The meetup group for TM1 in Sydney, Australia
    • TM1 Tutorials on LinkedIn
    • TM1 Tutorials on Twitter Us on Twitter!
    • TM1 Tutorials.com Our primary home on the interwebs
  • Twitter Roll

    • TM1 Get Together, anyone who has a passion for IBM Cognos TM1 solutions is welcome! RSVP today. http://t.co/cO4sXXhh3F 1 week ago
    • RT @Mbs_craig: Craig's MBS Daily is out! http://t.co/1LaEhUcup3 ▸ Top stories today via @IBMBAEdu 2 weeks ago
    • RT @IBMSoftware: New #IBMImpact blog: Forrester Research: Systems of Engagement Demand New Integration Solutions - And A New IT http://t.co… 4 weeks ago
    • RT @BP191: Surely not! Close to 90% of spreadsheet documents contain errors, a 2008 analysis of multiple studies suggests http://t.co/3lIC… 4 weeks ago
    • RT @TM1Australia: I'm hiring! IBM COGNOS TM1 SENIOR CONSULTANTS - SYDN at Cubic Resources - New Zealand #jobs http://t.co/q1UzKumMJR 4 weeks ago
  • Tags

    Active Form Analysis Assistance Big Data Budgeting Cognos Cognos Insight Cognos TM1 Comparative Analysis Corporate Planning CubeSpy Dashboard dynamic reporting ETL Excel ExecuteProcess IBM Cognos IBM Cognos Express IBM Cognos Insight IBM Cognos TM1 Implementing TM1 Installation Guide MDX NT Service Profit & Loss Profitability Analysis Server Monitor Statement of Work TI Process TM1 TM1 10.1 TM1 Consultants TM1 Cube Rules TM1 Development TM1 Installation TM1 Server TM1 Software TM1 Training TM1 Tutorial TM1 Web Transaction Log TurboIntegrator Turbo Integrator VBScript Wim Gielis
© TM1 Tutorials.com. Proudly Powered by WordPress | Nest Theme by YChong