Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
micheledenardi
Specialist II
Specialist II

Change Percentage Decimal Separator

Dear all,

i would like to change the decimal separator from comma (,) to dot (.)

So, the third column now is -56,82% and using Num() function i would like to obtain -56.82%

micheledenardi_0-1653299394383.png

I already tried these solution but the result is not correct.

micheledenardi_1-1653299689715.png

 

Ideas?

 

 

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
Labels (4)
7 Replies
justISO
Specialist
Specialist

Hi, choose 'Custom' formatting and set format you want:

justISO_0-1653302266673.png

 

micheledenardi
Specialist II
Specialist II
Author

I cannot set "fixed" formatting in the properties of the measure because i have worldwide users and some of them use dot as decimal separator, other use comma.

That's the reason why i need to obtain the correct result using Num() (i'll manage the correct number formatting using a user-variable  as second parameter in Num()).

If i try to apply your formatting the result is still incorrect.

micheledenardi_0-1653303383718.png

 

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
vinieme12
Champion III
Champion III

You can change the decimal separator for the application by setting the below parameter in your script 

 

Set DecimalSep=','; << Change from . To ,

 

 

https://help.qlik.com/en-US/sense/February2022/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInte...

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
justISO
Specialist
Specialist

try this then: Num(column(1)/column(2)-1,'#.##%', '.')

 

micheledenardi
Specialist II
Specialist II
Author

No,

it doesn't works

micheledenardi_1-1653306399185.png

 

 

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
micheledenardi
Specialist II
Specialist II
Author

Dear @vinieme12, due to the situation i explained above (worldwide users with different decimal separators), i cannot set fixed formatting at App/Object level. i need to reach the result using Num() function.

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
micheledenardi
Specialist II
Specialist II
Author

Any solution?

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.