Formatting Active Forms

Post Reply
JJ2
Posts: 19
Joined: Sun May 09, 2010 11:28 pm
OLAP Product: TM1
Version: 9.5
Excel Version: 2007

Formatting Active Forms

Post by JJ2 »

I have a dimension with mixed data types. The two data types are 4 dpl and %. I understand how to format different levels in an active form but how do i format the dimension with mixed data types where the elements are both at the lowest level? Thanks for any input!
Wim Gielis
MVP
Posts: 3241
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: Formatting Active Forms

Post by Wim Gielis »

Hi

And why not putting the measures in the columns?
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
JJ2
Posts: 19
Joined: Sun May 09, 2010 11:28 pm
OLAP Product: TM1
Version: 9.5
Excel Version: 2007

Re: Formatting Active Forms

Post by JJ2 »

Hi Wim,

Thanks for your reply. I need to have the time dimension in columns. For instance, you would have have the months in columns from Jan to Dec and the measures dimension in rows where you would have the two different data types.
Andy Key
MVP
Posts: 352
Joined: Wed May 14, 2008 1:37 pm
OLAP Product: TM1
Version: 2.5 to PA
Excel Version: Lots
Location: Sydney
Contact:

Re: Formatting Active Forms

Post by Andy Key »

Put an attribute against your measure dimension that identifies it as either 4dp or pc.

Next, change the IF(TM1RPTELISCONSOLIDATED... formula in column A (assuming you haven't added any extra columns yourself) to concatenate the attribute on the end.

Then insert extra rows as necessary in the format area, change the values in column A to 04dp, 0pc etc and format the rest of the format range as appropriate.
Andy Key
vaneagle
Posts: 30
Joined: Mon Jun 15, 2009 6:13 am
OLAP Product: Cognos Express and TM1
Version: 9.4 to 10.2
Excel Version: Excel 02 to 10
Location: Sydney

Re: Formatting Active Forms

Post by vaneagle »

Andy Key wrote:Put an attribute against your measure dimension that identifies it as either 4dp or pc.

Next, change the IF(TM1RPTELISCONSOLIDATED... formula in column A (assuming you haven't added any extra columns yourself) to concatenate the attribute on the end.

Then insert extra rows as necessary in the format area, change the values in column A to 04dp, 0pc etc and format the rest of the format range as appropriate.
That works?

My work around was having a sheet with the correct cell formating in a range and running a macro over the active form to fix the formatting.

I will give the above a go and see what happens.
lotsaram
MVP
Posts: 3706
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Formatting Active Forms

Post by lotsaram »

vaneagle wrote:That works?

My work around was having a sheet with the correct cell formatting in a range and running a macro over the active form to fix the formatting.

I will give the above a go and see what happens.
A bit of experimenting never goes astray ...

You can insert as many additional rows into TM1RPTFMTRNG as you need and likewise you can change the format key values in TM1RPTFMTIDCOL with whatever you like and the formulas in the format column to the left of "=TM1RPTROW(....." do not have to be "=IF(TM1RPTELISCONSOLIDATED(.....", they can be changed to whatever you like. One easy alternative is to create a formatting attribute and use DBRA.

Active Forms are very flexible, you are not limited to what comes straight out of the box.
JJ2
Posts: 19
Joined: Sun May 09, 2010 11:28 pm
OLAP Product: TM1
Version: 9.5
Excel Version: 2007

Re: Formatting Active Forms

Post by JJ2 »

Thanks everyone for you replies. I'm going to amend the formulae and see if I can get it to work. I will keep you updated.
Post Reply