Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
rish
Contributor III
Contributor III

Number of entries in the current week

Hello, what would be the expression to calculate the number of entries made in the current week and also last week? I cant use a static value for week as the data I am dealing with is updated everyday. Thanks.

1 Solution

Accepted Solutions
dplr-rn
Partner - Master III
Partner - Master III

Use set analysis

e.g. 

Sum({<OrderDate={">=$(=weekstart(today())) <=$(=weekend(today()))"}>}Sales) - current week

Sum({<OrderDate={">=$(=weekstart(today()-7)) <=$(=weekend(today()-7))"}>}Sales) - previous week

View solution in original post

3 Replies
dplr-rn
Partner - Master III
Partner - Master III

Use set analysis

e.g. 

Sum({<OrderDate={">=$(=weekstart(today())) <=$(=weekend(today()))"}>}Sales) - current week

Sum({<OrderDate={">=$(=weekstart(today()-7)) <=$(=weekend(today()-7))"}>}Sales) - previous week

rish
Contributor III
Contributor III
Author

Hi , thanks it worked