Best Practice for Active Form with dynamic columns?

Post Reply
Mark2007
Posts: 45
Joined: Tue Jan 07, 2014 12:07 pm
OLAP Product: Cognos TM1
Version: PA 2
Excel Version: office 365

Best Practice for Active Form with dynamic columns?

Post by Mark2007 »

Hi there,

I'd like to built an active form in which not only the rows are dynamic, but also the columns.

Some time ago I built something like this by inserting a second active form in a hidden sheet that generated a list of rows that I transferred (via Index) in the column-headers in the main sheet. But this was a little bit circuitous. Does anyone have a better idea?

Regards
Mark
User avatar
Elessar
Community Contributor
Posts: 340
Joined: Mon Nov 21, 2011 12:33 pm
OLAP Product: PA 2
Version: 2.0.9
Excel Version: 2016
Contact:

Re: Best Practice for Active Form with dynamic columns?

Post by Elessar »

Hi,

you can use TM1ELLIST function for this:
  • Generate MDX for your columns dimension
  • Use this MDX in TM1ELLIST
  • Create a date range with this TM1ELLIST
  • Use INDEX in columns
PS sorry, I've noticed later that you have TM1 10.2 installed. If so, TM1ELLIST is not your option as it was added in PA2
Best regards, Alexander Dvoynev

TM1 and Data Science blog: 6th article - PAfE + VBA: Commit each cell without pressing “Commit” button.
LanceTylor
Posts: 66
Joined: Mon Feb 27, 2012 12:37 am
OLAP Product: TM1
Version: 10.2.2 Fix Pack 4
Excel Version: 2010

Re: Best Practice for Active Form with dynamic columns?

Post by LanceTylor »

Another way is to build a cube with the following dims:
Column # (sequence of numbers that match the excel columnns)
Column list (contains the different lists of column values - dynamic aspect)
Measures (the actual values you want in your active form report columns)
Clients (optional - control dimension for users to filter specific list for different users

In the active form:
- use DBR formula to pull the column value
--- column # matchs the excel column, use spaces if necessary. Needs to be precise
--- column list in the row
- use a validation list to select the column list to make it dynamic
- apply formatting to columns across the whole length of the report. You need to ensure that it looks like a blank column.

Hope that helps

Lance
User avatar
scrumthing
Posts: 81
Joined: Tue Jan 26, 2016 4:18 pm
OLAP Product: TM1
Version: 11.x
Excel Version: MS365

Re: Best Practice for Active Form with dynamic columns?

Post by scrumthing »

Elessar wrote: Thu Jun 04, 2020 10:32 am you can use TM1ELLIST function for this:
Didn’t know that one. Thanks for sharing.
There is no OLAP database besides TM1!
Post Reply