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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

week to week differense calculation

Hi everybody! Explored many topics with similar or alike titles but didn't find right solution. The problem is to calculate the difference between weeks in straight table. In most topics have been discussed there is a selection of 2 definite periods (usualy year to year). In my case I select 1 period (e.g. January 2014) and have to get such table

WeekSalesGrowth
11000
215050
3120-30
416040

So the problem is,that I can't compute the difference between weeks in 1 month.

I tried formula like this:

= sum({$}Sales) - sum({$<Week={Week-1}>}Sales), but it didn't work. Week numbers are in my calendar. I feel that solution is simple,but can't find it. Can anybody help me?

1 Solution

Accepted Solutions
PradeepReddy
Specialist II
Specialist II

As per my understanding...

sum(Sales)-above(sum(Sales))

View solution in original post

4 Replies
MK_QSL
MVP
MVP

Sales

SUM(Sales)

Growth

SUM(Sales)-Above(SUM(<Month>Sales)

or

SUM(Sales)-Above(SUM(Sales)

PradeepReddy
Specialist II
Specialist II

As per my understanding...

sum(Sales)-above(sum(Sales))

Not applicable
Author

This way also was tried. But functions above() and before() can be used only in charts ot pivot tables

Not applicable
Author

Мy apologies! Guys, it works! Thanks a lot!