Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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...