Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
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])