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

How to remove word mentioned in a bracket from field in Qlikview Load Script

Hi,

I've below data in my app.

ID
123 AND(Test)
426 AND1
789 AND2(Test1)

 

I'm looking for a load scrip to removed characters in brackets, would like to see output like below.

ID
123 AND
426 AND1
789 AND2

 

Regards,

V

@PrashantSangle , @tresesco , @sunny_talwar , @marcus_sommer 

1 Solution

Accepted Solutions
PrashantSangle

Hi,

try below code,

Load
ID,
Trim(Replace(ID,mid(ID,Index(ID,'('),Index(ID,')')),'')) as ID1
Inline [
ID
123 AND(Test)
426 AND1
789 AND2(Test1)
];

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

3 Replies
PrashantSangle

Hi,

try below code,

Load
ID,
Trim(Replace(ID,mid(ID,Index(ID,'('),Index(ID,')')),'')) as ID1
Inline [
ID
123 AND(Test)
426 AND1
789 AND2(Test1)
];

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
vikasshana
Creator II
Creator II
Author

Perfect, thanks @PrashantSangle  it is working as expected 👍

PrashantSangle

If it works for you then like the solution also

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂