TM1 Dataserver name

Post Reply
User avatar
Ajay
Regular Participant
Posts: 183
Joined: Wed May 14, 2008 8:27 am
OLAP Product: TM1
Version: 10.2.0, PA 2.0.9
Excel Version: 2016
Location: London

TM1 Dataserver name

Post by Ajay »

I know that this is probably a stupid question, but for some reason I can't find out how to do it, but does anyone have the worksheet formula which retrieves the TM1 data server name (ie the DB in Server Explorer) ?

I am proper stumped !!!!

Unfortunately I need to promote stuff between environments but the instances are not called the same resulting in a bunch of spreadsheets which are going to need updating.


Cheers
Ajay
User avatar
qml
MVP
Posts: 1098
Joined: Mon Feb 01, 2010 1:01 pm
OLAP Product: TM1 / Planning Analytics
Version: 2.0.9 and all previous
Excel Version: 2007 - 2016
Location: London, UK, Europe

Re: TM1 Dataserver name

Post by qml »

Ajay, there is no function that would return the server name per se, but you can use the TM1USER worksheet function to that effect. It returns an empty string if the user is not logged on to a specific server, so you can use a clever set of IF statements coupled with the TM1USER function to figure out what server(s) you are connected to.
Kamil Arendt
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 Dataserver name

Post by lotsaram »

User avatar
Ajay
Regular Participant
Posts: 183
Joined: Wed May 14, 2008 8:27 am
OLAP Product: TM1
Version: 10.2.0, PA 2.0.9
Excel Version: 2016
Location: London

Re: TM1 Dataserver name

Post by Ajay »

Thats brilliant QML and LOTSARAM.

That's worked very nicely.

Cheers
Ajay
Post Reply