Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Comparing day quantities to previous years using a table in Sense.

Hi:

I'm having problems trying to solve a problem similar to this.  Giving this data:

YEAR-MONTHDAYQTY
20150110100
20150115200
20150120300
20140105100
20140115200
20140120300
20140130400
20130105200
20130110150
20120120200
20120122250

Need to get this one if I select YEAR-MONTH = 201501

     

TOTAL PER DAYTOTAL PER DAYTOTAL DAYTOTALTOTALAVGDIF
DAYSYEAR-MONTH 201501YEAR-MONTH 201401YEAR-MONTH 2013012 LAST YEARS2 LAST YEARSYEAR 0 - AVG 2 YEARS
050100200300150-150
101000150250125-25
1520020004002000
20300300200800400-100
2200250250125-125
3004000400200-200

Of course if I need to select other year-month previous years are recalculated using 2 previous years and same month.

I'm attaching excel file with data and desired output.

Any ideas?

2 Replies
sunny_talwar

Not sure if this is what you want (and there are certain things I don't understand such as Avg for last two years is based on last 3 year numbers divided by 2 and 2013 includes numbers from 2012, but assuming these were sample error, see if the attached helps)

Capture.PNG

Not applicable
Author

Hi Sunny:

Some tips you gave me, but I have some problems trying to execute your qvw file and also reproducing into Sense.

This is what I got when trying to see your qvw file.  A memory error.

MemoryError.jpg

And here is also an screenshot of Sense version using same load and formula values:

Senseerror.jpg

Im not getting same view like in QV.