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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Vikash938
Contributor III
Contributor III

How to handle currency column in qlik sense?

Salary
$125.50
$63.46
$43.27
$29.85
$32.69
$32.69
$50.48

How to handle this type of column where i want to separate $ sign from it and only numeric value i need it.?

Labels (2)
1 Solution

Accepted Solutions
MatheusC
Specialist II
Specialist II

@Vikash938 
If the format comes from your source data, you can make the adjustment directly in the table containing the field using the script, using the replace() function:

https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/FormattingFunc...

Replace([Salary], '$', '') as NewField

To process the field as a number, see using Num()

https://help.qlik.com/pt-BR/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/FormattingFunc...

Num() or Num#(Replace(Salary, '$', ''),'[optional format]').

If this isn't possible in the script, it can also be done in the preview.

- Regards, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!

View solution in original post

3 Replies
MatheusC
Specialist II
Specialist II

@Vikash938 
If the format comes from your source data, you can make the adjustment directly in the table containing the field using the script, using the replace() function:

https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/FormattingFunc...

Replace([Salary], '$', '') as NewField

To process the field as a number, see using Num()

https://help.qlik.com/pt-BR/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/FormattingFunc...

Num() or Num#(Replace(Salary, '$', ''),'[optional format]').

If this isn't possible in the script, it can also be done in the preview.

- Regards, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

duplicated post - elegant solution provided by @Or in that post. 

https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/How-to-handle-currency-column-in-Qlik-sen...

 

cheers

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
Vikash938
Contributor III
Contributor III
Author

Thank you... it really helpful.