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

Remove characters and special characters

I have a field like this-

Weeks

W31(31.07)

W32(07.08)

 

How do i remove the special characters and text and just keep the two numbers after W so that the new field becomes-

Weeks

31

32

2 Replies
Taoufiq_Zarra

@debmsarkar123  Maye be like :

Mid(Weeks,index(Weeks,'W')+1,2)

for exemple :

Input:
LOAD *,Mid(Weeks,index(Weeks,'W')+1,2) as New_Weeks INLINE [
Weeks
W31(31.07)
W32(07.08)
];

output:

Taoufiq_Zarra_0-1628065046427.png

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
MayilVahanan

Hi

Try like below

TextBetween(Weeks 'W', '(')

Ex: TextBetween('W31(31.07)', 'W', '(') gives 31

 

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