Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
soniasweety
Master
Master

Lastweek

Hi all,

I have a data sample attached.

I want to calculate  the  current week count of value and last week count of value.

I have a date field . 

here two conditions : 1  if week starts from Monday to sunday how can I calculate the count   each item wise?

2. if week starts from sunday to Saturday how to caluculate In script?  

Can anyone give some idea on this?

Thanks

Sony

21 Replies
antoniotiman
Master III
Master III

You need to select WeekNumber 28

or

Count({<WeekNumber={'$(=Max(WeekNumber))'}>} DISTINCT ID)

magdalenatudose
Creator
Creator

Hi,

Can someone to atash me an simple example (for Qlik Sense) who resume this conversation?

I don't know how i can applique your advices to show the value from last week.

Thank you,

Magdalena

Magdalena