TM1 Web - Using SUBNM within an IF Statement

Post Reply
kburrows
Posts: 1
Joined: Tue Apr 12, 2011 2:46 pm
OLAP Product: TM1
Version: 9.5.1
Excel Version: 2007

TM1 Web - Using SUBNM within an IF Statement

Post by kburrows »

Hi, new to TM1 and have a question about formulas within TM1 Web:

I need to dynamically populate a couple of cells within my workbook based upon data pulled from an active form (stored on another tab within the workbook). I have used the OFFSET command and named the results (Own_CC, CheckCC1, CheckCC2, CheckCC3).

The formula I am trying to evaluate is as follows:

Code: Select all

=IF(AND(CheckCC1<>Own_CC,CheckCC1<>0),CheckCC1,IF(AND(CheckCC2<>Own_CC,CheckCC2<>0),CheckCC2,IF(AND(CheckCC3<>Own_CC,CheckCC3<>0),CheckCC3,SUBNM(Server&":DeptCC","CostCenters",""))))
Basically, this formula says that if data exists in the CheckCC1-3 ranges, list that cost center. Otherwise, allow the user to choose a cost center with a SUBNM function.

This works in Excel, but when I upload to TM1 web the SUBNM functionality does not work. Has anyone successfully used this before or is there a better way to accomplish this?

Thanks in advance.
kburrows
User avatar
jim wood
Site Admin
Posts: 3961
Joined: Wed May 14, 2008 1:51 pm
OLAP Product: TM1
Version: PA 2.0.7
Excel Version: Office 365
Location: 37 East 18th Street New York
Contact:

Re: TM1 Web - Using SUBNM within an IF Statement

Post by jim wood »

Have you searched the forum for this? I seem to remeber there was problem when trying to do add if statements within the subnm for TM1 web / dynamic views...
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
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: TM1 Web - Using SUBNM within an IF Statement

Post by lotsaram »

kburrows wrote:Hi, new to TM1 and have a question about formulas within TM1 Web:

I need to dynamically populate a couple of cells within my workbook based upon data pulled from an active form (stored on another tab within the workbook). I have used the OFFSET command and named the results (Own_CC, CheckCC1, CheckCC2, CheckCC3).

The formula I am trying to evaluate is as follows:

Code: Select all

=IF(AND(CheckCC1<>Own_CC,CheckCC1<>0),CheckCC1,IF(AND(CheckCC2<>Own_CC,CheckCC2<>0),CheckCC2,IF(AND(CheckCC3<>Own_CC,CheckCC3<>0),CheckCC3,SUBNM(Server&":DeptCC","CostCenters",""))))
Basically, this formula says that if data exists in the CheckCC1-3 ranges, list that cost center. Otherwise, allow the user to choose a cost center with a SUBNM function.

This works in Excel, but when I upload to TM1 web the SUBNM functionality does not work. Has anyone successfully used this before or is there a better way to accomplish this?

Thanks in advance.
kburrows
There are certainly better ways to do this. I can't imagine why you need to pull element names from another worksheet using OFFSET but leaving that asside you will be able to get your SUMNM formula to work if you break the conditional logic into a separate cell and then feed the result into the SUBNM as the 3rd "element name" argument.
E.g. Define a new named range "CheckCCResult" with the formula
=IF(AND(CheckCC1<>Own_CC,CheckCC1<>0),CheckCC1,IF(AND(CheckCC2<>Own_CC,CheckCC2<>0),CheckCC2,IF(AND(CheckCC3<>Own_CC, CheckCC3<>0), CheckCC3,"")))
and your SUBNM formula then becomes
=SUBNM(Server&":DeptCC","CostCenters",CheckCCResult)

As OFFSET is now supported in TM1 Web there should be no reason why this won't now work.

However the issue I think Jim was aluding to in the web will still persist. Namely in TM1 Web SUBNMs that are formula driven by paramater cells will only stay "dynamic" (that is the subset member value refreshes when the parameter values change) until such time as the cell is clicked and the subset editor is launched. This has the effect of rendering the parametized argments static. The SUBNM will still update but only when clicked. This is different from Excel where the formula remains dynamic.
Post Reply