Page 1 of 1

MDX convert number to string

Posted: Thu Oct 24, 2024 4:31 pm
by dan.kelleher
I need to retrieve the current year from a cube and increment and convert back to a string to be able to use StrToMember. What is the opposite function to strToValue that will allow me to do this? I've tried FORMAT, CStr, Str as advised by the LLMs but nothing works. I cannot believe this is not possible.

Re: MDX convert number to string

Posted: Thu Oct 24, 2024 9:00 pm
by Wim Gielis
Why not doing this in the system cube itself in a different parameter ? As a string

Re: MDX convert number to string

Posted: Fri Oct 25, 2024 7:22 am
by lotsaram
I agree. Much easier done in the lookup cube itself. Then simply call the "next year" value from the cube in the MDX.