Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.?
@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
@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
duplicated post - elegant solution provided by @Or in that post.
cheers
Thank you... it really helpful.