Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Save $600 on Qlik Connect registration! Sign up by Dec. 6 to get an extra $100 off with code CYBERSAVE: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
karan_kn
Creator II
Creator II

create new field based on the string

If status field contains 'PROGRESS', Create a new field (PROGRESS else DONE)

LOAD * INLINE [
ID, Status
1, Projectx AA sfdfdsfdf PROGRESS
2, Projects sdfsdfA dfgdfg
3, Projectu AdsfA tryth PROGRESS
4, Projectf AgnfA cfdfgdfg
5, Projectd AdfdfA dfgdnn
6, Projectc AfdgfA cvbcbtg PROGRESS
7, Project AfgdfgA fgfdsgdfg PROGRESS
];

 

1 Solution

Accepted Solutions
Saravanan_Desingh

one solution is.

tab1:
LOAD *, If(Upper(Status) Like '*PROGRESS*', 'Y') As Progress,
		If(Not(Upper(Status) Like '*PROGRESS*'), 'Y') As Done;
LOAD * INLINE [
ID, Status
1, Projectx AA sfdfdsfdf PROGRESS
2, Projects sdfsdfA dfgdfg
3, Projectu AdsfA tryth PROGRESS
4, Projectf AgnfA cfdfgdfg
5, Projectd AdfdfA dfgdnn
6, Projectc AfdgfA cvbcbtg PROGRESS
7, Project AfgdfgA fgfdsgdfg PROGRESS
];

commQV69.PNG

View solution in original post

1 Reply
Saravanan_Desingh

one solution is.

tab1:
LOAD *, If(Upper(Status) Like '*PROGRESS*', 'Y') As Progress,
		If(Not(Upper(Status) Like '*PROGRESS*'), 'Y') As Done;
LOAD * INLINE [
ID, Status
1, Projectx AA sfdfdsfdf PROGRESS
2, Projects sdfsdfA dfgdfg
3, Projectu AdsfA tryth PROGRESS
4, Projectf AgnfA cfdfgdfg
5, Projectd AdfdfA dfgdnn
6, Projectc AfdgfA cvbcbtg PROGRESS
7, Project AfgdfgA fgfdsgdfg PROGRESS
];

commQV69.PNG