Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi ,
you can please help me , I have a field name "rate".
I want to create a flag for in a field rows
rate |
---|
1d |
1e |
1c |
2a |
2g |
2k |
4 |
5 |
Thanks,
Ravi.
I don't know what is missing with pick wildmatch..
try this:
if(wildmatch(rate,'1*'),'Born by Company',if(wildmatch(rate,'2*'),'Born by vendor',rate)) as rate
Hi,
on the script try this:
pick(wildmatch(rate,'1*','2*')+1,'Born by Company','Born by vendor',rate) as rate
Its working only '1*' but its not working '2*'
pick(wildmatch(rate,'1*','2*')+1,'Born by Company','Born by vendor',rate) as rate
Thanks for your response.
try this
A:
load *,
Pick(WildMatch(rate, '1*', '*2*','*'), 'Born by Company', 'Born by vendor',rate) as Highest ;
load * Inline [
rate
1d
1e
1c
2a
2g
2k
4
5
];
I don't know what is missing with pick wildmatch..
try this:
if(wildmatch(rate,'1*'),'Born by Company',if(wildmatch(rate,'2*'),'Born by vendor',rate)) as rate
Hi sureshqv,
using pick(wildmatch(...)+1 for the ELSE part don't work ??
yes its not picking as expected
may help us
If wildmatch doesn't match anything it will return 0. And you specified only one match pattern. Pick starts at 1, so feeding pick a 0 won't give a result.
I was talking about this:
pick(wildmatch(rate,'1*','2*')+1,'Born by Company','Born by vendor',rate) as rate
for me also its not working some versions its working it seems i will try in other version and get back to you.
Thank you