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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

Script

Hi All

I have a field called Team, within the field name i have many contentes and among which i have to select those which has Iperformance ,

Please find the attachment .. can some one tell me how do i write in the script to get those Team which has iperformance in it .

and Iperformance

Regards ,Iperfo.PNG

13 Replies
MarcoWedel

another solution might be:

-(Team like '*iperformance*') as iPerf


hope this helps


regards


Marco

vinieme12
Champion III
Champion III

Hi,

Wildmatch returns a number if it finds the search string it will return 1 else 0,   so we don't need to encapsulate it in an if() statement.... try it first

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vinieme12
Champion III
Champion III

Hi,

Wildmatch returns a number if it finds the search string it will return 1 else 0,   so we don't need to encapsulate it in an if() statement.... try it first

LOAD *,wildmatch(Team,'*iperf*') as iPer_flag INLINE [

Id,Team

1,324e iperformance Test Drive

82,328e Iperformance

99,330e Iperformance

100,330e Sedan Iperformance

180,530e Iperformance

181,530e Xdrive Iperformance

182,530e Xdrive iperformance

183,530e Xdrive

];

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
MarcoWedel

comparison of the different proposed solutions:

QlikCommunity_Thread_254528_Pic1.JPG

LOAD Team,

     WildMatch(Team,'*iperformance*') as iPer_flag,

     If(SubStringCount(Lower(Team),'iperformance')>0,1,0) as IsValueAvailable,

     -(Team like '*iperformance*') as iPerf     

INLINE [

    Team

    324e iperformance Test Drive

    328e Iperformance

    330e Iperformance

    330e Sedan Iperformance

    530e Iperformance

    530e Xdrive Iperformance

    530e Xdrive iperformance

    530e Xdrive

];

hope this helps

regards

Marco