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

Currency formats

Hi everyone,

I came across a problem that I don't know how to solve.

I downloaded data and the amount looks like this:

Amount

38,362 EUR
39,398 EUR
37,210 EUR
37,210 EUR
$ -1,939
$ -2,332
$ -541
1,055,555 DKK
508,908 DKK


I would like to have a field with only amount and also additional field with currency, so that all lines look the same and it is easy to convert the amounts to diff. currencies..

Amount                           Doc.Currency

38,362                              EUR

-1,939                               USD

        

However, because curr. indicators are both at the beginning or at the back of the amount, I dont know how to handle this. Please help.

J.         

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     You can try this way.

    Load

    Keepchar(Field,'1234567890') as Amt,

    Purgchar(Field,'1234567890-') as Curr

  

    From xyz.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     You can try this way.

    Load

    Keepchar(Field,'1234567890') as Amt,

    Purgchar(Field,'1234567890-') as Curr

  

    From xyz.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Sokkorn
Master
Master

Hi,

Check in the attached file.

Hope this help you.

Regards,

Sokkorn

Not applicable
Author

Thank you, it worked:)