Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
NavinReddy
Creator II
Creator II

sub String

Dear Experts

I want to fetch a value mention in bracket,im using this expression its not working
please some one help me to fetch only "in USD"

=Mid('Jan Cost     (in USD)', Index('Jan Cost     (in USD)', ' ') +8)


Best Regards,

Niranjan

1 Solution

Accepted Solutions
maxgro
MVP
MVP

if your strin gis str

= mid('$(str)', Index('$(str)', '(')+1, Index('$(str)', ')')-Index('$(str)', '(')-1 )

see attachment

View solution in original post

5 Replies
maxgro
MVP
MVP

if your strin gis str

= mid('$(str)', Index('$(str)', '(')+1, Index('$(str)', ')')-Index('$(str)', '(')-1 )

see attachment

Anonymous
Not applicable

Hi,

mid('Jan Cost     (in USD)',11, 1 )

or

mid('Jan Cost     (in USD)',12, 1 ) - if there are two spaces in the string after Jan Cost

NavinReddy
Creator II
Creator II
Author

Hi Massimo,

Thank you so much for your valuable response

Best Regards,

Niranjan

MarcoWedel

Hi,

one solution could be also:

TextBetween('Jan Cost    (in USD)', '(', ')')

QlikCommunity_Thread_146280_Pic1.JPG

hope this helps

regards

Marco

NavinReddy
Creator II
Creator II
Author

Hi Marco,

Thanks Again

Best Regards,

Niranjan