Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
danaosjoin
Partner - Contributor II
Partner - Contributor II

filtering with date range

Hello,

I have loaded the following table with employees requested vacations.

The columns are : employee_code, from_date, to_date, days_requested

The data are:

1 06/11/2019 07/11/2019 2

2 4/11/2019 08/11/2019 5

I want to create a table to display the days_requested per employee by selecting from a filter pane date_from and date_to.

The problem is that when i select range 06/11/2019 - 07/11/2019 it will show only the first row but i want also the second line and instead of 5 days requested to show only the days between the selected range, again 2 days.

How can i do this ?

Thank you,

Noel

6 Replies
StarinieriG
Partner - Specialist
Partner - Specialist

Hi,

try to see file attached

danaosjoin
Partner - Contributor II
Partner - Contributor II
Author

thank you very match 😊

danaosjoin
Partner - Contributor II
Partner - Contributor II
Author

Hello

I have noticed in your example that if i do not select any dates from filter pane the computed column "days" you added is wrong because it must be showing the same days with "days_requested".

How can i rectify this ?

Thanks

Noel

StarinieriG
Partner - Specialist
Partner - Specialist

Hi,

you have to set the variable FROM as min instead of max, so it will work

danaosjoin
Partner - Contributor II
Partner - Contributor II
Author

Hi,

I change it but again the result is wrong

Thank you

StarinieriG
Partner - Specialist
Partner - Specialist

Try to see file attached, here I see right numbers