Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Join us at the Cloud Data and Analytics Tour! REGISTER TODAY
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
saran7de
Master
Master

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
saran7de
Master
Master

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