Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date range in Set Analysis

Hi All,

I have here a table:

dayendstart.png

I need to create an analysis, what is the total Qty of the Report Date with the specific date range.

ex: For Report date 20-Sep-14, the range is >=14-SEp-14<=20-Sep-14

How can I include this in my set analysis?

Thanks!

15 Replies
anbu1984
Master III
Master III

=Sum(If(Num(Report_Date) >= (Report_Date-6) And Report_Date<=Report_Date,Qty))

Not applicable
Author

here's a sample document you guys can check out

Not applicable
Author

Not applicable
Author

I have attached a sample qvw below

Not applicable
Author

bump

jagan
Luminary Alumni
Luminary Alumni

Hi,

Qlikview calculations are done at table level not by row level, so it is not possible in front end, if you just want for one day then use below expression

=Sum({<Report_Date={'>=$(=date(Max([Rpt Date])-6))<=$(=Date(Max([Rpt Date])))'}>}Qty)


if you want for all the days then you have pre calculate in script by using Peek or Previous().


Hope this helps you.


Regards,

Jagan.