Skip to main content
Announcements
YOUR OPINION MATTERS! Please take the Qlik Experience survey you received via email. Survey ends June 14.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Month on Month comparison over 12 months

Hi, I hope you guys can I've read quite a few posts that are similar to this one, but can't seem to get anything to work for me.

I'm looking to analyse sales data from a month and compare it to the previous months figures and show what the difference is.

I can easily show the month and the sales results from it as in columns 1 & 2, but I wanted to create the data in columns 3 & 4.

Column 3 shows the data from column 2 in the previous month and column 4 is column 2 minus column 3

The dimension is UNIT.SOLD_MONTH and column 2 expression is  sum(UNIT.TOTALSOLD)

Any ideas greatly welcomed, thanks Simon.

   

Sold MonthMonth UnitsPrevious Month UnitsVariance
May-15148173-25
Apr-1517310370
Mar-15103976
Feb-1597107-10
Jan-151078225
Dec-1482203-121
Nov-1420318518
Oct-1418516322
Sep-1416311746
Aug-14117224-107
Jul-1422416955
Jun-141690169
1 Solution
5 Replies
martinpohl
Partner - Master
Partner - Master

see attached

Regards

or use

RangeSum([Month Units],-[Previous Month Units]) as Variance

Not applicable
Author

Hi Martin, thanks for your reply, however I need this to be dynamic, so if I select a different buyer I get results that are relevant to them. Thanks

Not applicable
Author

Hi, thanks for this, I was able to use rangesum to create a 2 month total then take the month units from the rangesum total to give me the desired result

Not applicable
Author

rangesum(Below(sum(UNIT.TOTALSOLD),0,2))