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: 
billuran
Partner - Creator
Partner - Creator

Set Analysis between two dates

Hello, I want to do set analysis with dates. Here is my basic function:

sum(Hours)

My date Field is PP

I want sum hours that are equal to or between the max available date and 42 days before this.

Here is my first attempt.

sum({<[Exclude Hours]={'NO'},PP={'>=$(=Date(max({1}PP)))<=$(=Date(max({1}PP)-42))'},Overtime={'OT'}>} Hours)

It however is not working for the specified date range

1 Solution

Accepted Solutions
swuehl
MVP
MVP

shouldn't it be like

PP={'>=$(=Date(max({1}PP)-42))<=$(=Date(max({1}PP)))'}

View solution in original post

2 Replies
swuehl
MVP
MVP

shouldn't it be like

PP={'>=$(=Date(max({1}PP)-42))<=$(=Date(max({1}PP)))'}

billuran
Partner - Creator
Partner - Creator
Author

Stefan, As always thank you. Silly by me...