Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
sona_sa
Creator II
Creator II

Filter from filed.

Hi,

I have a field. In the same filed date are like that :

CONSULTANCY - AFFILIATES (AFF002)

DT GROUP NAV-PROD (708.8677)

AUSTRALIA - NAV (PRJ001)

I Need only which are enclosed in braces. For Example :

CONSULTANCY - AFFILIATES (AFF002) = AFF002

DT GROUP NAV-PROD (708.8677) = 708.8677

AUSTRALIA - NAV (PRJ001) = PRJ001

Can anyone help me on the same.

Thanks.

5 Replies
MayilVahanan

Hi

Try like this

TextBetween(FieldName, '(',')')

TextBetween(' CONSULTANCY - AFFILIATES (AFF002)','(',')')

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable

Use TextBetween(FieldName,'(',')')


Regards,

KKR

arulsettu
Master III
Master III

try this too

=PurgeChar(SubField('CONSULTANCY - AFFILIATES (AFF002)','(',2),'()')

qlikviewwizard
Master II
Master II

Hi , MayilVahanan and arulsettu answers are working fine.

Capture.JPG

Capture1.JPG

Filter_Data:

LOAD *, TextBetween(FIELD, '(',')') as TextBetween_FIELD,

PurgeChar(SubField(FIELD,'(',2),'()') as PurgeChar_FIELD;

LOAD * INLINE [

FIELD

CONSULTANCY - AFFILIATES (AFF002)

DT GROUP NAV-PROD (708.8677)

AUSTRALIA - NAV (PRJ001)

];

Not applicable

Hi,

Please find the attached QVW.