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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

week caluclation

Hi,

I need to sum up the before 4weeks sales in straight table When I select week in week listbox

Please help

3 Replies
ecolomer
Master II
Master II

Here you have an example similar but with month

For weeks is the same

maxgro
MVP
MVP

Sum({$ <week={">=$(=rangemax(0,max(week)-4))"}>}sales)

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi Reddy,

Personal what I would do is to create Point In Time flags in calendar and use WeekToDate flag, where WeekToDate = 1 in your Set Analysis.

Here is a link Calendar with flags making set analysis so very simple which might be helpful.

Your Set Analysis expression will just be Sum({<%PiT_WeekToDate = {1} >}Amount)

Hope this is helpful