Storing a string value, in where measure that is numeric..

Post Reply
7Zark7
Posts: 81
Joined: Tue May 31, 2011 6:29 am
OLAP Product: TM1 and EV
Version: 9.1 SP3
Excel Version: Excel 2010

Storing a string value, in where measure that is numeric..

Post by 7Zark7 »

Hi All,

Struggling with something and hoping you help/add insight. I am preparing a forecasting template and would like the
user to input a string value at the intesections of all "SFC Account line item(s)" and "Line item description" as per screenshot below.

My Problem is that the they need to be strings instead of values. The months will hold the forecast values in question.
So.... Is this possible to set that intersection to a string even though the "Value" measure is numeric???. I do not want to stack another dimension on the Columns to keep it as simple as possible.
advertising forecasting final.png
advertising forecasting final.png (49.14 KiB) Viewed 4179 times
Any expert insight would be helpful.

Cheers

Zark
7Zark7
Posts: 81
Joined: Tue May 31, 2011 6:29 am
OLAP Product: TM1 and EV
Version: 9.1 SP3
Excel Version: Excel 2010

Re: Storing a string value, in where measure that is numeric

Post by 7Zark7 »

Have not used this before but this looks like it might provide the solution:

AllowSeparateNandCRules=T

Are there any caveats when using this parameter??
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: Storing a string value, in where measure that is numeric

Post by lotsaram »

7Zark7 wrote:Struggling with something and hoping you help/add insight. I am preparing a forecasting template and would like the
user to input a string value at the intesections of all "SFC Account line item(s)" and "Line item description" as per screenshot below.

My Problem is that the they need to be strings instead of values. The months will hold the forecast values in question.
So.... Is this possible to set that intersection to a string even though the "Value" measure is numeric???. I do not want to stack another dimension on the Columns to keep it as simple as possible.
In TM1 cubes whether a cell is numeric or string is defined by the element type of the LAST dimension in the cube as per the original dimension order. So with your example if the period dimension was last AND the Line Item Description element type was S then you would be able to input a string into the cell with the view layout exactly as is. If the title element displaying "value" is from the last dimension in the cube then you would have to stack. Fine if the interface is Excel or a websheet, no good if the UI is Contributor.
7Zark7 wrote:Have not used this before but this looks like it might provide the solution:

AllowSeparateNandCRules=T

Are there any caveats when using this parameter??
This won't help unless you observe the rules for defining N and S cells from the last dimension in the cube.
7Zark7
Posts: 81
Joined: Tue May 31, 2011 6:29 am
OLAP Product: TM1 and EV
Version: 9.1 SP3
Excel Version: Excel 2010

Re: Storing a string value, in where measure that is numeric

Post by 7Zark7 »

Cheers. I guess i can have my months in the measures dim or something like that ( obviously not best practice ), and then rule drive it back in to the month dim later and perhaps hold it the values inititally at a global "no month" variable...

Cheers mate.

Zark.
7Zark7
Posts: 81
Joined: Tue May 31, 2011 6:29 am
OLAP Product: TM1 and EV
Version: 9.1 SP3
Excel Version: Excel 2010

Re: Storing a string value, in where measure that is numeric

Post by 7Zark7 »

Hey mate,

Just another thing, do reckon i just move the period dimension to the last slot instead? I was thinking of rule driving it back, but its probably overkill. The only thing I guess
is that you get a period dimension with some strings that are obviously not period related. What are your thoughts on this? I am thinking best practice here, but in this example perhaps its
not practical? And if this is the case, i guess then my measure dimension is kind of redundant ( do i bother to keep it??), if im using my period dimension as in replacement of the measure dim.

Obviously would not have to go down this path, but I here tm1 websheets can be used in contributor in the latest build, so this sort of thing can be avoided.

Cheers

Zark
User avatar
mattgoff
MVP
Posts: 518
Joined: Fri May 16, 2008 1:37 pm
OLAP Product: TM1
Version: 10.2.2.6
Excel Version: O365
Location: Florida, USA

Re: Storing a string value, in where measure that is numeric

Post by mattgoff »

Hopefully you won't take this the wrong way, but I would recommend that you take the standard intro to TM1 administration class to help you get up to speed on some of these issues. You have some fundamental misunderstandings of how TM1 works, and a little upfront training will save you a LOT of time on the backend (vs. just trying to learn as you go from the docs and this forum). Your "solutions" to this problem are going to make things a lot worse down the road.

To answer your question, it looks like "Value" is an element in your last dimension. You should add "Line Item Description" to that dimension, not period. Chances are you're going to need to set up an Excel template for data entry and not try to force it into the cubeviewer.

Matt
Please read and follow the Request for Assistance Guidelines. It helps us answer your question and saves everyone a lot of time.
7Zark7
Posts: 81
Joined: Tue May 31, 2011 6:29 am
OLAP Product: TM1 and EV
Version: 9.1 SP3
Excel Version: Excel 2010

Re: Storing a string value, in where measure that is numeric

Post by 7Zark7 »

Thanks mate. But my problem is that. The client will be inputting the data straight into contributor to make use of work flow, not excel or tm1web. If i was building this in TM1websheet / excel then per best practice the measure dimension would always be last.
I need to keep the view cells open, and stacking multiple dimension on the columns will get messy as I will need to zero suppress, so the thought was to use One dimension will work better. The problem, is I need a period dimension on the columns but also would like to add a string element for description. The only way to do this is to place the Period dimension last OR put elements in the measure dimension that resemble periods. Just wondered what the best approach is here. I can place the period dimension last but it just looks weird, but i will avoid putting period elements in the measure dimension to make my view work.

Cheers

Zark
Post Reply