Display a character '-' instead of a number for the consolat

Post Reply
tosravan
Posts: 10
Joined: Wed Aug 26, 2009 7:21 am
OLAP Product: TM1
Version: 9.4
Excel Version: 2002

Display a character '-' instead of a number for the consolat

Post by tosravan »

I have numeric data which are consolidated in the cube. And i want to display a '-' instead of the number for the consolation. I need to se the base (:N) elements data but the consolidation should just display a character (-).

Can i please know if there is any solution for this using rules.

Thanks,
Sravan
User avatar
rkaif
Community Contributor
Posts: 328
Joined: Fri Sep 05, 2008 6:58 pm
OLAP Product: IBM Cognos TM1
Version: 9.1 or later
Excel Version: 2003 or later

Re: Display a character '-' instead of a number for the cons

Post by rkaif »

'-' is a String not a number and you can only display a Number in a cell which is number format.

You can write a Rule to display a number for specific Consolidation. You can say

Code: Select all

[] = C: 0;
This rule will write 0 for all the consolidations in your cube. Note that you will have to use SKIPCHECK and FEEDERS in your rules.

Hope this helps.
Last edited by rkaif on Sat Jun 19, 2010 6:44 am, edited 1 time in total.
Cheers!
Rizwan Kaif
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Display a character '-' instead of a number for the cons

Post by Alan Kirk »

tosravan wrote:I have numeric data which are consolidated in the cube. And i want to display a '-' instead of the number for the consolation. I need to se the base (:N) elements data but the consolidation should just display a character (-).

Can i please know if there is any solution for this using rules.
In addition to the preceding suggestions, if you're only looking at data within the cube viewer you can apply a Custom format to the consolidated element via the dimension's Element Attributes editor. However this will have no effect when you slice it. Also if the consolidation is intending to
merely group elements rather than consolidate them, consider weighting each member with a weight of zero (meaning that the consolidation will also return 0) so that there's no confusion on the part of users. It won't get you the dash that you're after, but it'll prevent a bogus number from being calculated.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
jstrygner
MVP
Posts: 195
Joined: Wed Jul 22, 2009 10:35 pm
OLAP Product: TM1
Version: 9.5.2 FP3
Excel Version: 2010

Re: Display a character '-' instead of a number for the cons

Post by jstrygner »

rkaif wrote:Note that you will have to use SKIPCHECK and FEEDERS in your rules.
When all you want to see on Consolidations is 0 calculated via rule, you'll only need SKIPCHECK.
tosravan
Posts: 10
Joined: Wed Aug 26, 2009 7:21 am
OLAP Product: TM1
Version: 9.4
Excel Version: 2002

Re: Display a character '-' instead of a number for the cons

Post by tosravan »

Thank you all for your replies.

I did make the field display a 0 before posting here. I was only wondering if there is any way we could display '-'. After reading your replies, i was able to communicate to my business users that '-' can not be displayed and 0 can be displayed.

They were OK with the 0.

Thank you.
User avatar
paulsimon
MVP
Posts: 808
Joined: Sat Sep 03, 2011 11:10 pm
OLAP Product: TM1
Version: PA 2.0.5
Excel Version: 2016
Contact:

Re: Display a character '-' instead of a number for the cons

Post by paulsimon »

Hi

Maybe you missed Alan's suggestion.

Right click on your dimension and select Edit Element Attributes. Click in the Format column next to the Measure that you want to format. Click on Format. Select a Custom Format enter the following:

#,##0;-#,##0;\-

The different formats are separated by ';'

The first is for positive values, the second for negatives, and the last is for zero values. The character \ is an escape character which means that the next is to be treated as a literal, so '-' is treated as a literal '-' rather than as a minus sign for a number format.

You can also use this technique to put out messages, eg a kind of conditional formatting so negatives can put out 'Bad' and positives 'Good', etc.

Regards


Paul Simon
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: Display a character '-' instead of a number for the cons

Post by lotsaram »

Depending on your delivery mechanism it is relatively easy with number formatting to make 0 appear as "-"
Post Reply