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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

exclude the value 0 (zero) in the average of rows

month201220112010
1203312159616832
2208022225517797
3192722301318037
4199932133817799
5207192383119521
6268812409621399
7212722097919885
8106392172618141
902127217512
1001973918198
1102092819741
1201965020104
avg133262170218747
Hello,
Does anybody know how to exclude the value 0 (zero) in the average of rows? In the case above it's including the zero's but that is not what i want because those months haven't past yet.
Thanks!
3 Replies
Anonymous
Not applicable
Author

i would suggest.. you keep the coming months values to be as Nulls.

That should fix your average expression.

Not applicable
Author

Hi,

please see the attached example.

Maybe it´s helpful to get the right idea.

Good luck!

Rainer

daveamz
Partner - Creator III
Partner - Creator III

Hi,

Or, if you prefer set analysis:

avg({<[2012]=[2012]-{0}>}[2012])

Regards,

David