Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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 ,
Like this may be?
Table:
Load
Id,
Team,
if(SubStringCount(lower(Team),'iperformance')>0,1,0) as IsValueAvailable;
LOAD * 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
];
LOAD *
FROm XXXXXX
where wildmatch(Team,'*iperformance*')
Or
Where Team Like '*Iperformance*';
Hi sunny ,
will this sort all that teams which has iPerformance ?
for example 303eiPerformance,201e iPerformanceXVDef, X5 iPerformance, ......and so on ?
And also iam creating a flag and iam using this , if the content under field team is Iperformance then it should be 1 else 0 ,
is this correct iam trying to use the flag ?
if(Team='*iperformance*',1,0) as iPerf,
But this is not working, after taking the filter as a list box it shows only 0 .
use
Wildmatch(Team,'*iperformance*') as iPerf,
Hi Vineet ,
but how do i create the flag for the same , with 1 and 0 ,
That is there should be a flage if the teams has Iperformance then it should slecte as 1 else 0
Extending Vineeth's Script you can try like:
IF(Wildmatch(Team,'*iperformance*') > 0, 1, 0) as iPerfFlag,
Like this may be?
Table:
Load
Id,
Team,
if(SubStringCount(lower(Team),'iperformance')>0,1,0) as IsValueAvailable;
LOAD * 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
];
that's what the proposed expression should deliver ...