Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.


Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Not applicable

Sum Last Year with specific Date


I have a table like this:

- TableTransaction (DateTrans, Total)

- TableWeekCY (Year, Week, DateTransCY)

- TableWeekLY (Year, Week, DateTransLY)

Example, I have a data like this:

20124009/04/2012 - 09/10/201209/06/2011 - 09/12/2011

I want to display Sum(Total) in 2 column, that is Total for CY and LY based on Current Selection (Year and Week). How do the Expression if I made it on the pivot table?

The Output is like this:


I norm the table into like this:

- TableWeekCY (Year & '-' & Week as CodeWeekCY, DateTransCY as DateTrans)

- TableWeekLY (Year & '-' & Week as CodeWeekLY, DateTransLY as DateTrans)

Thank you.

Tags (1)