Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
C_Howarth
Contributor II
Contributor II

Find the max date within a selected period

I am trying to create a expression to find the last date within any selected period within the current year. Currently I have:

 

=max(Date(Year(Today())&GetFieldSelections([month])))

 

But this is returning a value with the year 2452 which is obviously not correct

1 Solution

Accepted Solutions
C_Howarth
Contributor II
Contributor II
Author

Solved now thanks to a colleague:

 

=max({<[month code] = {$(=(Year(Today())&GetFieldSelections([month])))}>}[date])

View solution in original post

1 Reply
C_Howarth
Contributor II
Contributor II
Author

Solved now thanks to a colleague:

 

=max({<[month code] = {$(=(Year(Today())&GetFieldSelections([month])))}>}[date])