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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to write expression

Hi All,

I am new to qlik View.

I want write a expression for Field_Code.Which contains values=(12345,2344,344,78889,098090).My requirement is i want to exclude values starting with 1,2,3 and 4.How can i write it in qlik View Expression.Can any one suggest please.
Labels (1)
9 Replies
Not applicable
Author

what kind of expression do you want? do you want to sum your Field_Code?

rustyfishbones
Master II
Master II

Do you need to do this in the Script?

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

{<Field_Code -= {'1*', '2*', '3*', '4*'}>}

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
rustyfishbones
Master II
Master II

try something like

2014-01-27_1110.png

tresB
Champion III
Champion III

Logic would be something like:

Sum( If( Not WildMatch(Field_Code, '1*', '2*', '3*', '4*') , Field_Code))

The same you can do with set analysis as well.

Edit: WildMatch

Not applicable
Author

No i dont want to sum.I only want exclude values starting with number 1,2,3,4

Not applicable
Author

then try only({<Field_Code -= {'1*', '2*', '3*', '4*'}>}Field_Code)

amit_saini
Master III
Master III

Hi Ipshita,

You can give a condition while calling that filed in the script like:

If(wildmatch(Field_Code, '1*', '2*', '3*', '4*',('','','',''))

Thanks,

Not applicable
Author

if(not wildmatch(fieldname,'1*','2*','3*','4*'),fieldname)