Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Find max effective date based on selected date

Hi,

I have some data here that need to be display as of it's effective date based on user selected date. I tried with something like...

Sum( {<EffDt={">=$(=max(EffDt)) <='01/12/2016'"}>} HeadCount) where '01/12/2016' will be some variable of user's selected date but it did not work.

Sample Data:

EffDtLocationHeadCount
01 Jan 2016A0018
01 Jan 2016A00210
01 Jan 2017A00115
01 Jan 2017A00215

If user select Apr 2016 then the result should be:

EffDtLocationHeadCount
01 Jan 2016A0018
01 Jan 2016A00210

If user select Feb 2017 then the result should be:

EffDtLocationHeadCount
01 Jan 2017A00115
01 Jan 2017A00215

I'm new to Qlikview and not sure if it is possible to do so. Any advice on how to write expression will be very appreciated.

Thank you in advance.

0 Replies