Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All
I have a filed named 'Type' in QlikView which contains values like Abc, Abcs, Abdr, bef, ltv etc..Now that I need to write in script to return expression values such that where type contains Ab
I tried like where Type=''Ab*' but not returning any values.Please help
Try with
LOAD * INLINE [
Type
Abc
Abcs
Abdr
bef
ltv
]Where wildmatch(Type,'*Ab*');
Hi use the wildmatch function to help you out:
if(wildmatch(Type,'AB*'),value,0)
Please remember to mark this as helpful or the correct answer if I have helped you or answered your question.
This will help users identify the answers should they come across this thread in the future.
can I have something like using where clause so that I can restrict values from script itself
Try with
LOAD * INLINE [
Type
Abc
Abcs
Abdr
bef
ltv
]Where wildmatch(Type,'*Ab*');
You can use wildmatch in the script as well which is essentially a WHERE LIKE clause
u can try wildmatch here
wildmatch( M, 'Ab*','Ab?','ab')
Let vCheck='Ab*';
for text object:
=if(FieldIndex('Field',vCheck)>0, True(),False())
Why would you do this when wildmatch will return a true / false anyway and not require an if statement?
Thank you very much it helped
yes but if he can check in front end also he can get to know .