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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
lukas_sokol
Contributor II
Contributor II

Set Analysis in QlikView - value for previous year

Hi,

I have the following problem

I want to have sum of OrderValue only when orderqty 2013,2014 and orderValue 2013,2014 is <> 0


I try:

if(

    Sum({$< Year ={$(PrevYear)} >}OrderedQty) <> 0 and

    Sum({$< Year ={$(PrevYear)} >}OrderValue) <> 0 and

    sum( {$<Flag_OrderValue = {1}>} OrderedQty) <> 0 and

    Sum( {$<Flag_OrderValue = {1}>} OrderValueBase) <> 0,

   

     Sum(OrderValue)

  )

Labels (1)
10 Replies
lukas_sokol
Contributor II
Contributor II
Author

using

sum(AGGR(YourExpression,Dimension1,Dim2,Dim3)) give to correct value