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: 
Not applicable

my filed data = USD300 , how to read only 300 ?

Hi All

My raw data price list is string , i need to read only the number , can some one give me the script.

Now my script is like this , it will read USD300 :-

     [List Price] AS LIST_PRICE,

Paul

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Use

purgechar ( LIST_PRICE,'USD' )

or

=Replace( LIST_PRICE,'USD', '' )

Regards,

Jagan

View solution in original post

9 Replies
Not applicable
Author

use Subfield(LIST_PRICE,'USD',2)

OR

purgechar ( LIST_PRICE,'USD' )

er_mohit
Master II
Master II

use num function

num([LISTPRICE]) as [LIST_PRICE]

jagan
Partner - Champion III
Partner - Champion III

Hi,

Use

purgechar ( LIST_PRICE,'USD' )

or

=Replace( LIST_PRICE,'USD', '' )

Regards,

Jagan

Not applicable
Author

Hi,

This will work simply

=Mid('USD300',4)

Regards,

Saritha xavier

Not applicable
Author

Both work fine Shi Thank a lot

Not applicable
Author

This not able to work. Thank you too for trying.

Not applicable
Author

you even better Jagan , you dare to try replace.

Not applicable
Author

Hi Sar

I doubt your will work , as in your script there it no List Price.

Paul

Not applicable
Author

 

new:

load mid(LISTPRICE,4)as PRICE
Resident USD;