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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
qliklearnervir
Creator
Creator

date ranges selection and output mismatch.

Hi,

I am doing one requirement where i want to show "arrivaldate" and "Booking date" as a selection in calendar as from - To scenerio and final count of booking come as booking count.

as per my scenerio i want in certain date range of arrival date , how many booking happened with booking date ,  and similarly in date range of booking date , how many arrival count happen and vice versa.

but issue is like with actual data and date other reference date is   coming with 0 value count , which i don't want.

Like sql my final chart should show only matching value .

additionally i want year, month and day filter also for arrival as well as booking .

attached qvw and data for reference.

5 Replies
MK_QSL
MVP
MVP

For provided example, what output you are looking for?

sunny_talwar

To me, what you have in there is doing exactly what it should. Would you be able to explain your requirement once again? What is the expected output?

Capture.PNG

Arrivals are between 01-01-2015 and 02-02-2015 (b1 and b2) and Bookings are shown between 01-01--2014 and 30-06-2014(b1 to b7)

qliklearnervir
Creator
Creator
Author

i dont want date to be populated if count is o.....like arrival from march to april     and booking from  jan to feb ,,,,i only want the date having both data else blank.

or want to replicate  scenerio like  arrival date  OR  booking date

                                                   arrival date AND booking date   than data should filter out......

sunny_talwar

Like this?

Capture.PNG

Try these two expressions:

Arrival

=If(Count({<arrivaldate={"$(='>=' & Date(vMinArrival) & '<=' & Date(vMaxArrival))"}>}booking) <> 0,

  Count({<arrivaldate={"$(='>=' & Date(vMinArrival) & '<=' & Date(vMaxArrival))"}>}booking))

Booking

=If(Count({<bookingdate={"$(='>=' & Date(vMinBooking) & '<=' & Date(vMaxBooking))"}>}booking) <> 0,

  Count({<bookingdate={"$(='>=' & Date(vMinBooking) & '<=' & Date(vMaxBooking))"}>}booking))

qliklearnervir
Creator
Creator
Author

i am creating a new thread with updated data ...........