Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

tertre_m
New Contributor II

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 ?

6 Replies
YoussefBelloum
Esteemed Contributor

Re: Formatting numbers with currency

Hi,

maybe you can try this:

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

hope it helps

prat1507
Valued Contributor

Re: Formatting numbers with currency

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

agigliotti
Honored Contributor II

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.

OmarBenSalem
Esteemed Contributor

Re: Formatting numbers with currency

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

# ##0,00

Capture.PNG

tertre_m
New Contributor II

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)

Thank you for your answers.

OmarBenSalem
Esteemed Contributor

Re: Formatting numbers with currency

result:

Capture.PNG

Community Browser