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

Date range slider does not show appropriate dates

Dear all,

I work on the attached file which should basically be a slider which allows you to select dates. And then only the relevant data should pop up in the bar chart. It all seems to work however the two selection sliders only allow me to Naamloos.png

Any thoughts on what goes wrong here>?

1 Solution

Accepted Solutions
trdandamudi
Master II
Master II

Please see the attached file and modify according to your needs. In this app based on your requirement you can select the dates from 2013-01-01 to 2013-06-30. Hope this helps..

Date_Slider.jpg

View solution in original post

3 Replies
Anil_Babu_Samineni

Marc, Can you please let me know

LOAD * INLINE [

    Country, Value, Salesdata

    USA, 12, 2013-01-04

    USA, 14, 2013-02-05

    USA, 14, 2013-02-05

    USA, 14, 2013-02-06

    USA, 14, 2013-02-07

  

];

let vFromDate = Floor(Date#('2013-01-01', 'YYYY-MM-DD'));

let vToDate = Floor(Date#('2013-06-30', 'YYYY-MM-DD'));

In that Variables you used the 01-01-2013 and 30-06-2013

But, In your data you don't have Data. How do you Achieve that

Selecting Arbitrary Date Ranges - YouTube

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
r3iuk
Creator
Creator

2 Options depending on what kind of date select control you want to use.

1. If as in your example you want 2 calendar controls, then in each control set the following:

Min Value:  =min(Salesdata)

Max Value: =max(Salesdata)

2. If you want a single Slider control then set its field to Salesdata, and in Multi Value mode.  Then in your chart, the expression just needs to be Sum(Value)

trdandamudi
Master II
Master II

Please see the attached file and modify according to your needs. In this app based on your requirement you can select the dates from 2013-01-01 to 2013-06-30. Hope this helps..

Date_Slider.jpg