Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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?
May be this?
AVG ({<field-={'NA'}, field1={'some value'}>*(<field2={'some value'}>+<field2={"=Isnull()"}>)}field)
what does * sign signifies over here
its actually nt giving me desired output
Would you be able to share a few rows of data and explain what you need to get as your expected output from it?
So this is the code in sql, am cnvertng this to set analysis expresion
So the output is nt matchng with the sql code is the syntax fine?
AVG (field)
where
field1= 'some value'
AND (field2 = 'some value'OR field IS NULL)
AND field <> 'NA'
Any reason for not filtering it while loading from SQL. Most of the time same SQL statement exactly works in load script.