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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
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.
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

tresesco
MVP
MVP

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)