SUBST syntax

Product:
Planning Analytic 2.1.19  tm1server = 11.8.03500.6

Microsoft Windows 2019 server

Issue:

How use SUBST instead of STR function in a process?

In PAL 2.1.18 STR function does not truncate a string when a length parameter is passed. The original value is returned as a string.

Solution:

This should give the same result

sTestA = STR(1000000, 4, 0) ;
sTestB = SUBST (numbertostring (1000000) , 1, 4) ;

 

Syntax for SUBST is:

SubSt(String, Beginning, Length)​

  • ​String = A text string​
  • Beginning = Substring starting position​
  • Length = Length of the string that we want to keep

 

More Information: