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

Date range when you select year from listbox

Hello all,

I have a the following issue. The following data set is available.

RunStartdateEnddateFrequency
11-1-201230-12-20132
21-1-201311-2-20134
312-2-201315-6-20141
Total7

I also have a Year listbox which is the Year(Startdate) function.

Year
2012
2013
2014

When I select year 2012 in the list box it shout give me run 1, 2 and 3 with a total of 7 (total of field Frequency). When I select year 2013 it should give me run 2 and 3 with a total of 5 (total of field Frequency).

What is does now is when I select only the year which matches thus 2012 only 2012 is given which gives a total of 2 (total of field Frequency).

So my question is how do I program Qlikview to get the whole data set corresponding to the year (Startdate) selected.

Thanks!!!

1 Reply
PrashantSangle

Hi,

Try like

If you are calculating Year at front end then

use below expression in text Obejct

Sum({<StartDate={">=$(=Date(max(StartDate)),'DD-MM-YYYY')"}>}Run)

If you calculate Year At back end

then use below expression in text Obejct

Sum({<Year={">=$(=max(Year))"}>}Run)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂