Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

removing unneccesary data from Listbox

hi all

I have fields values like

Country
[COUNTRY].[US]
COUNTRY].[UK]
COUNTRY].[IN]

I want output like this.

COUNTRY
US
UK
IN

How we can get it,any suggestions.

Thanks

1 Solution

Accepted Solutions
ashfaq_haseeb
Champion III
Champion III

try below

TextBetween(COUNTRY, '[' , ']',2) as COUNTRY

Regards

ASHFAQ

View solution in original post

7 Replies
tresesco
MVP
MVP

Load

     TextBetween(SubField(Country, '.',2), '[' , ']') as COUNTRY

v_iyyappan
Specialist
Specialist

Hi,

you can use the expression in General Proprieties in Field option.

Replace(Country, '[Country].',' ')

Regards,

MK_QSL
MVP
MVP

Use below in your script instead of Country

TextBetween(Country,'[',']',2) as Country

PrashantSangle

Hi,

Try like this,

TextBetween(Subfield(COUNTRY,'.',2), '[' , ']') as new_COUNTRY

Regards

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 🙂
ashfaq_haseeb
Champion III
Champion III

try below

TextBetween(COUNTRY, '[' , ']',2) as COUNTRY

Regards

ASHFAQ

MK_QSL
MVP
MVP

Just want to know whether my answer works for you or not...

Not applicable
Author

Yes Manish it was also worked..unfortunatly I did not notice your answer.