Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to add $ signs in my text box

hi all,

i have written the expression in my text box to caluculate =sum(revenue) it show the revenue 100000 ..i want me to add $ in the number how can i acieve this without adding another text box any help highly appreciable..

15 Replies
Not applicable
Author

Hi,

try this:

= Num(sum(revenue),'$ #,#0.0; -$ #,##0.0') and thats all.

If you wnat 2 decimals use '$ #,##0.00; -$ #,##0.00' or 3 decimals '$ #,##0.000; -$ #,##0.000' or 1 decimal '$ #,##0.0; -$ #,##0.0'

best regards.

Not applicable
Author

Hi,

try this:

num(

(sum(ProjectedSales_modified) +(sum(ProjectedSales_modified) *($(Vprojected)/100)))

,'$ #,#0.0; -$ #,##0.0')

If you wnat 2 decimals use '$ #,##0.00; -$ #,##0.00' or 3 decimals '$ #,##0.000; -$ #,##0.000' or 1 decimal '$ #,##0.0; -$ #,##0.0'

best regards.

Not applicable
Author

without decimals i want to rounding the number is it possible and how to achieve this

PrashantSangle

Hi,

Yes you can round it using floor()

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 🙂
Not applicable
Author

jeje sure,

num(

(sum(ProjectedSales_modified) +(sum(ProjectedSales_modified) *($(Vprojected)/100)))

,'$ #,#0; -$ #,##0')

with '$ #,#0; -$ #,##0' you get an Int number.

best regards.

Not applicable
Author

Kishore

just use

 

=money(100000.44,'$#,##0')

the part of the function ,'$#,##0' describes the format of the number

Richard

PS please don't forget to mark question as answered, or mark the helpful or correct answers.