TM1PrimaryDBName returns the primary TM1 server name in which the user is authenticated. This function is valid only in Planning Analytics for Microsoft Excel and in Planning Analytics websheets. It is not supported in IBM TM1 Perspectives.
In this video, TM1PrimaryDBName will be used to obtain the TM1 server name.
Excel
Version 11 and 12
TM1PRIMARYDBNAME()