TM1 Tutorials.com

Implementing TM1 since 2005

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

Replicating a Dimension Hierarchy in Excel

Posted on April 23, 2012 by Nurul.T
2 Comments

For those of us still using earlier versions of TM1 where Active Forms are not available, below is a set of VBA code that would enable you to recreate the dimension tree in your excel reports .

In this example, we have a list of sales area managers from the Sales Managers dimension derived using the ELCOMPN formula. The objective is to make the list resemble the dimension hierarchy in TM1 as shown below.

Below is the list of Sales Managers.The numbers along side the elements are the indentation value and also serves as the grouping levels.

VBA Code for the Indentation

For row = firstrow to lastrow
  indentval = CDec(Cells(row, col2).Value)
  If indentval> 0 Then
    Cells(row, col).Select
    Selection.InsertIndentindentval
  End If
Next row

Note : col refers to the column with the names of sales managers and col2 refers to the column that has the indentation value

Code for Grouping

For z = firstrow To lastrow
  grplvl = Cells(z,col2).Value
  If grplvl = 3 Then
    s = z + 1
    Do While Cells(s, col2).Value = 4
      s = s + 1
    Loop
    Rows(z + 1 & ":" & s - 1).Select
    Selection.Rows.Group
    z = s - 1
  End If
Next z
Categories: IBM Cognos TM1, TM1 pre 10.1, Training Material | Tags: IBM Cognos TM1, TM1 9.1, TM1 9.4, TM1 9.5, TM1 VBA, Visual Basic
  • Authors Profiles

    Regular Authors:







    Guest Authors:
  • TM1 Tutorials Pages

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

    • InfoCube Spark – An Introduction
    • 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 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

    • 4 June Meet Up: find out TM1 Developers Guide to Cognos Express http://t.co/3gnjiWAfaQ 4 hours ago
    • TM1 Meet Up 4 June we will discuss TM1 Developers Guide to Cognos Express - what you don't know that you should: http://t.co/rGf4BvGnqp 4 hours ago
    • Proud to Introduce Spark - a FREE TM1 Monitoring Suite in the Cloud! http://t.co/m6oRSCCmDS 1 day ago
    • 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
  • 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