Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Previous 28 days in Qlikview

Hi guys,

i would like to do a count of orders for the previous 28 days in an expression. 

I have a day field in my load script called orders_invoice_date_day and the field i would like to count is order_no

Can this be done?

Thanks!

1 Solution

Accepted Solutions
julian_rodriguez
Partner - Specialist
Partner - Specialist

Hello Jamel

Try this:

Count({<orders_invoice_date_day = {'>=$(=Max(orders_invoice_date_day)-28)'}>}  order_no)

Regards

View solution in original post

4 Replies
julian_rodriguez
Partner - Specialist
Partner - Specialist

Hello Jamel

Try this:

Count({<orders_invoice_date_day = {'>=$(=Max(orders_invoice_date_day)-28)'}>}  order_no)

Regards

jpenuliar
Partner - Specialist III
Partner - Specialist III

Hi,

Try something like:

=COUNT(if([Date_In] >= DATE($(vStartDate)) And  [Date_In] <= DATE($(vEndDate)), COUNTER)) ,

the formula above assumes you have a two variables, vStartDate and vEndDate.

vEndDate can be by default = today(), or any dates selected. this depends on your design requirements.

set analysis can also work.

Regardsm,

JP

Anonymous
Not applicable
Author

Julian's suggestion has worked !

Thanks very much..

julian_rodriguez
Partner - Specialist
Partner - Specialist

You are welcome... !