6 Replies Latest reply: Nov 7, 2017 8:40 AM by Manuel Tertre

# Formatting numbers with currency

Hello, I'm having trouble representing numbers in french format. What I actually want to do is to have thousands separated by spaces, up to 2 decimals separated by a comma and a euro sign at the end separated by space ("2 845,99 €" e.g.).

I know how to do some of these things but not how to combine them :

To have spaces between thousands, I use the formula "# ##0" with "," as decimal separator and " " as thousands separator.

To have up to 2 digits after the comma and the euro sign, I use the expression "Round(mynumber,0.01)" and the formula "0,################ €" with the same separators.

I don't know how I can combine both to do what I want, do you know how I could do it ?

• ###### Re: Formatting numbers with currency

Hi,

maybe you can try this:

num(YOUR_EXPRESSION,'# ##0,00')&' \$'

hope it helps

• ###### Re: Formatting numbers with currency

Use this ########### ###,00

• ###### Re: Formatting numbers with currency

in your script use the settings below:

SET ThousandSep=' ';

SET DecimalSep=',';

SET MoneyThousandSep=' ';

SET MoneyDecimalSep=',';

SET MoneyFormat='# ##0,00 €;-# ##0,00 €';

and in your chart object set Money as format settings.

• ###### Re: Formatting numbers with currency

Maybe try as follow directly using the qlik sense's formating tool; without the num function :

# ##0,00

• ###### Re: Formatting numbers with currency

result:

• ###### Re: Formatting numbers with currency

Hello, Andrea's answer works almost, I just don't have up to two numbers after the comma (2,40 -> 2,4) but I think that I will forget about this for currencies and only use it for other numbers.

How am I supposed to get "1 234,6" from 1234,56 ? (without the euro sign now)