Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
BI & Data Trends 2021. Discover the top 10 trends emerging in today. Join us on Dec. 8th REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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
Highlighted
Contributor II
Contributor II

Solved now thanks to a colleague:

 

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

View solution in original post

1 Reply
Highlighted
Contributor II
Contributor II

Solved now thanks to a colleague:

 

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

View solution in original post