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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Previous week total

Trying to create a measure that will, based on whatever date, retrieve the prior weeks total.  Basically table should look like following:

Date     Week     Value

9/15     1              Week 0 Total

9/16     1              Week 0 Total

9/17     2              Week 1 Total

9/18     2              Week 1 Total... so on...

I am aware that week numbers are incorrect, just trying to provide an example of what I am trying to create.  I have an expression, but it does not correctly display data, rather weeks are rolling.

Any help is appreciated, thanks in advance for any help.

1 Reply
undergrinder
Specialist II
Specialist II

Hi Ism,

Try this expression:

=sum({$<week={'$(=max(week)-1)'}>} Value)

G.