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: 
Not applicable

AVG last 2 weeks IF current week is 0

Hi All,

I am trying to get the average of last 2 WW if the current WW is empty.

My code currently only return the current WW if have value

If(sum({$<[Oper Code]={'800.20'}>}[Qty Out])>0, sum({$<[Oper Code]={'800.20'}>}[Qty Out]) / sum({$<[Oper Code]={'800.20'}>}[Qty In]))

error loading image

Please help.

Thanks in advance.

Labels (1)
0 Replies