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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Choosing Calender Period from From and To values

Hi,

I am trying to create a calender object with 'From' and 'To' Dates, instead of choosing a range.

How do I write script to integrate the time period to reflect in charts for example?

Can anyone help?

DK

Labels (1)
4 Replies
stephencredmond
Partner - Specialist II
Partner - Specialist II

Hi,

You would need to add the selected dates into a Set in your calculation. Something like:

Sum({< Sales_Date = {">$(=DateFrom)<$(=DateTo)"}>} Sales)

Stephen

Not applicable
Author

Hi Stephen,

Thanks for your reply.

I have got only one date field available to use. How do I use to create DateFrom and DateTo to be able to filter from just one field value?

Appreciate your help.

DK

stephencredmond
Partner - Specialist II
Partner - Specialist II

Hi,

You could use 2 variables and use 2 Calendar Controls (Slider/Calendar).

Stephen

Not applicable
Author

Hi,

Finding it difficult to implement the idea as QV Script. I have got one date field called 'startdate' and need to apply TO & FROM date range using this field to filter table data or chart data dynamically. Can you please explain me with a sample script? DK