Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

shouldn't it be like

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

View solution in original post

2 Replies
swuehl
Champion III
Champion III

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...