sql - How to format value as float with 2 deciaml only in mdx? -


here value :

value -0,00398911382022891

and member count value

         member [date].[percentage]                ([date].[averagesalenumberthisyear] - [date].[averagesalenumberpreviouseyear] )/ [date].[averagesalenumberthisyear]. 

if use format_string = "percent" getting value : -0,40%, want same without % sign.

you can use custom format strings in mdx. sounds want

format_string = "0.00" 

or

format_string = "fixed" 

i'm assuming didn't really want multiple value 100, "percent" does)

if do want multiplied 100, in expression:

     member [date].[percentage]            100 * ([date].[averagesalenumberthisyear] - [date].[averagesalenumberpreviouseyear] ) / [date].[averagesalenumberthisyear]. 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -