Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Compare with last year data...

Hello everyone,

I just started working with Qlikview and came across this tricky situation in which I have to compare data with last year's total figures and display right next to current year total amount. All selected filters should stay as it is and applies to last year total as well.

e.g. data looks something like this...

Program and Class are the filters

and Group1 and Group2 are part of the Inline Load i have to decide grouping in my chart table:

 

ProgramClass    Group1   Group2       Year   Amount
PROG1A100502016100
PROG1A1001002015200
PROG1B2001002016500
PROG1A3001502015400
PROG1D1001002015

450

If Program: Prog1, Class = 'A' and Group1 selected then,

My output should look like below..

 

        Group1          Sales        LY_Sales
           100100
100100100
300400

0

     I have attached sample file here..

2 Replies
Not applicable
Author

Anybody!!!

Moderators!!

sumeet-vaidya
Partner - Creator
Partner - Creator

Hi Sambhaus,

Kindly find the below screenshot where you need to aggregate the expression on Groups.

Also, In Dimension use this Expression in Enable Condition ==> if($Field = 'Group1',1,0) for Group1

and if($Field = 'Group2',1,0) for Group2.

Hope this resolves your problem.

Sample.PNG

Regards

Sumeet