Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Average Issue

Hi,

I have a code which gives me correct stats application by application but when I take average it also counts zero values therefore average decreases than actual should be. How can I resolve this issue either by cod eor presentation?

2 Replies
Not applicable
Author

You could try... avg({<Yourfieldname <> 0> Yourfieldname})  and/or make sure suppress zero-values is checked on the Presentation tab.

Not applicable
Author

How can ifnore zeros if want to calculate (CMP_Date - pre)

if ( State_Code = 'CMP' , timestamp ( Txn_Date ), null ()) as [CMP_Date]

if ( State_Code = 'CMP' ,( Previous ( CMP_Date )), '' ) as pre