Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Format Number with apostrophe

Hi all,

I would like to format a number in an expression. The format should look like this: 999'999.00

I've tried several things, but I cant get the result I whish.

if i use; =num(amount,'#''##0.00','.',chr(39))  the result looks like this: 99'9'999.00

when replacing the 2 apostrophe with a comma =num(amount,'#,##0.00','.',chr(39))  the result looks like this: 999999,# #0.00

Can someone tell me how to format this number correctly?

Thanks

Ilonka

1 Solution

Accepted Solutions
PrashantSangle

Hi,

Modify as i suggested in my earlier post then reload.

and then use

=replace(num(999999,'###,##0.00'),',',chr(39))

in

text object

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

16 Replies
fvelascog72
Partner - Specialist
Partner - Specialist

In Properties, Tab Number choose Fixed to 2 decimals and change Decimal Separator with . and Thousand Separator with '.

Or perhaps with this:

Replace(Replace(num(Number,'#.##0,00'),'.',chr(39)),',','.')

Not applicable
Author

Thanks for the suggestion.

In the Tab Number I cant see any dimension. (my number is a Dimension).

With Replace(Replace(num(Number,'#.##0,00'),'.',chr(39)),',','.') I get 99999999'900.00 (original number is 9'999'999.99)

anlonghi2
Creator II
Creator II

Hi Ilonka,

try with this little modified Ferico's solution:

replace(num(sum([Material Code]),'###,##0.00'),',',chr(39))

Best regards

NickHoff
Specialist
Specialist

= num(($vTestNum), '#''##0', '.', chr(39))

anbu1984
Master III
Master III

=Replace(num(9999999,'#,##0.00'),',',chr(39))

NickHoff
Specialist
Specialist

There isn't a need to use replace, my solution works just replace the variable with your field.

Not applicable
Author

still get as result 999'9'999

Is it possible that some system region settings are messing up the format?

PrashantSangle

Hi,

Post your sample apps.

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
robert_mika
Master III
Master III

Replace 999999 with your dimension

=TextBetween(num(999999,'#,##0.00'),'',',')&Chr(39)&mid(num(999999,'#,##0.00'),FindOneOf(num(999999,'#,##0.00'),',')+1,100)

22-Apr-15 7-50-12 AM.jpg

You can replace the 100  with any number or len(num(999999,'#,##0.00'))