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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to get data on current week?

Hi,

I have to show the no of salesitems logged and no of salesitems closed in current week, i,e if user access the file on every Thursday user need to show the data from Monday to Thursday for eg: if I logged on 03/07/2014 the table will show the data from 30/06/2014 to 03/07/2014.

Is it possible. can anyone help me with expression?

I used below but not getting how to change on week.

Dimension: staff
Dimension: Product

expression1: count(distinct(Saleid)
Expression2: =Count({<growns={'Closed','closed'}>}Saleid)

1 Solution

Accepted Solutions
SunilChauhan
Champion II
Champion II

Count({<Date={">=$(=Weekstart(today()))<=$(=Weekend(today())-3)"    },growns={'Closed','closed'}>}Saleid)

Sunil Chauhan

View solution in original post

5 Replies
Not applicable
Author

Maybe:

Week = {$(=Max(Week))

SunilChauhan
Champion II
Champion II

Count({<Date={">=$(=Weekstart(today()))<=$(=Weekend(today())-3)"    },growns={'Closed','closed'}>}Saleid)

Sunil Chauhan
Not applicable
Author

Thanks. for logged I can use below right?

Count({<Date={">=$(=Weekstart(today()))<=$(=Weekend(today())-3)"    }>}saleid)

SunilChauhan
Champion II
Champion II

yes thats correct

Sunil Chauhan
Not applicable
Author

Thanks.