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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
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)

  )

10 Replies
lukas_sokol
Contributor II
Contributor II
Author

using

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