Custom Number Format to Make Zeros display -?

Post Reply
kiss351523
Posts: 51
Joined: Thu May 05, 2011 2:05 am
OLAP Product: TM1
Version: 9.5
Excel Version: 2007 and 2003
Location: Asia

Custom Number Format to Make Zeros display -?

Post by kiss351523 »

What is the full custom number format for making zero values display the symbol "-" in TM1?

thks!
declanr
MVP
Posts: 1828
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: Custom Number Format to Make Zeros display -?

Post by declanr »

The number formats apply a similar logic to excel number formatting where it is split into 3 sections:
1/ Positive Numbers
2/ Negative Numbers
3/ Zeroes

Apply number formats to a dimension element ends up with slightly different connotation in Architect vs Workspace but the part you care about si the same:

Code: Select all

#,##0;(#,##0);-
In that example it uses a comma for thousand separator, encloses negatives in brackets and does not show decimals. The bit you care about is after the last semi-colon ( ; ) and it is just a hyphen/dash in order to show a dash.
Declan Rodger
lotsaram
MVP
Posts: 3703
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Custom Number Format to Make Zeros display -?

Post by lotsaram »

declanr wrote: Mon Oct 26, 2020 8:09 am In that example it uses a comma for thousand separator, encloses negatives in brackets and does not show decimals.
Strictly speaking it doesn't enforce using comma as the thousand separator. Whatever the local regional settings are on the user's desktop for thousand separator will be substituted.
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
semaxan
Posts: 3
Joined: Thu Oct 22, 2020 12:41 pm
OLAP Product: Planning Analytics
Version: 2.0
Excel Version: 2016

Re: Custom Number Format to Make Zeros display -?

Post by semaxan »

I was helped to get the following format in Architect without showing any decimals but with thousand separation using spaces.
Image
Attachments
TM1 Architect number format
TM1 Architect number format
TM1format.PNG (3.68 KiB) Viewed 2523 times
semaxan
Posts: 3
Joined: Thu Oct 22, 2020 12:41 pm
OLAP Product: Planning Analytics
Version: 2.0
Excel Version: 2016

Re: Custom Number Format to Make Zeros display -?

Post by semaxan »

Actually, instead of using a short hyphen - I preferred the longer en-dash (ALT+0150). You could also use the even longer em-dash ALT+0151. But the middle one is the one I use.
Post Reply