Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
megasupermoon
Contributor III
Contributor III

How to select dates between START_DATE and END_DATE fields with one Date Picker

Hello,

I have Pivot Table that have medication information with PATIENT_ID, START_DATE, MEDICINE_NAME,  MEDICINE_POTENCY and EXPIRATION_DATE.  There's also Date Picker, and when the user selects date range,  the report should show only those medications that  are valid within selected date range. For now Date Picker gives medications  whose START_DATE is within selected date range, regardless of whether the medications have expired or still valid. 

How to make the report and Date Picker work as desired or is it even possible? Is this done with code/query or in the report side?

Thanks for advance!

Labels (1)
1 Solution

Accepted Solutions
edwin
Master II
Master II

the behavior is really dependent on your data model.  i would guess that the date picker and the start date are associated.  you will need to make a bridge table that connects both your start and end date so you can control whether the selected date applies to the start date or expiration date.

can you pls at least share your DM?

View solution in original post

1 Reply
edwin
Master II
Master II

the behavior is really dependent on your data model.  i would guess that the date picker and the start date are associated.  you will need to make a bridge table that connects both your start and end date so you can control whether the selected date applies to the start date or expiration date.

can you pls at least share your DM?