Forum Discussion
Dellis81
11 months agoPost Prodigy
Calculation group expression strings vs Measure dynamic strings
Hello I am attempting to implement dymanic format strings into calculation groups. For starters - I have a select few measures utilizing dynamic format strings - which are working great. How...
johnt75
11 months agoSuper User
I had a similar issue recently, it could be that the 0s and .s need to be escaped. Try
VAR BaseFormat =
COALESCE ( SELECTEDMEASUREFORMATSTRING (), "#,#.00" )
VAR Label = " " & [ItemPurUnit]
VAR FormatString =
SUBSTITUTE ( SUBSTITUTE ( BaseFormat & label, "0", "\0" ), ".", "\." )
RETURN
FormatString
- Dellis8111 months agoPost Prodigy
Thank you for your response!
I tried your suggestion, but getting something a little different. Rounding up, but the additional characters reflect the initial measure value. I'm not sure what you mean characters need to be escaped?
thank you!