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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

set analsis expre

AVG (field)

where
field1= 'some value'

AND (field2 = 'some value'OR field IS NULL)

AND field <> 'NA'

this needs to be done on set analysis

how?

Labels (1)
16 Replies
prma7799
Master III
Master III

tresB
Champion III
Champion III

May be this?


AVG ({<field-={'NA'}, field1={'some value'}>*(<field2={'some value'}>+<field2={"=Isnull()"}>)}field)

Anonymous
Not applicable
Author

what does * sign signifies over here

Anonymous
Not applicable
Author

its actually nt giving me desired output

sunny_talwar
MVP
MVP

Would you be able to share a few rows of data and explain what you need to get as your expected output from it?

Anonymous
Not applicable
Author

So this is the code in sql, am cnvertng this to set analysis expresion

Anonymous
Not applicable
Author

So the output is nt matchng with the sql code  is the syntax fine?

Anonymous
Not applicable
Author

AVG (field)

where
field1= 'some value'

AND (field2 = 'some value'OR field IS NULL)

AND field <> 'NA'

Digvijay_Singh
MVP
MVP

Any reason for not filtering it while loading from SQL. Most of the time same SQL statement exactly works in load script.