Date range picker extension

The date range picker (Date picker) is a visualization extension that lets you select a single date or a range of dates from a calendar. It is included in Dashboard bundle.

  • In single date mode, you select from a simple calendar.
  • In date interval mode, you can select a range from the calendar, or any of the predefined ranges that are available.

When to use it

The date range picker is useful when you have one or more date fields that you need to use to filter your selections.

Creating a date range picker

You can create a date range picker on the sheet you are editing.

Do the following:

  1. From the assets panel, under Custom objects > Dashboard bundle drag a Date picker object to the sheet.
  2. Select the date field to use as filter in Date field.

    The list contains only fields that are recognized as a date field by Qlik Sense.

  3. Select if you want to be able to pick a single date or a date interval in Single date / interval.

    Date interval lets you pick a range of dates.

    Single date lets you pick a single date only.

When you have created the date range picker, you may want to adjust its appearance and other settings.

Setting the available date range

You can set the range of dates available to pick by setting the option Advanced setup to On. You can use expressions or explicit date values. The expressions used below refer to a field named DateField.

  • Set the first date of the calendar with Min date.

    Default value is =Min( {1} [DateField]). This expression returns the first date in DateField in the full data set.

  • Set the last date of the calendar with Max date.

    Default value is =Max( {1} [DateField]). This expression returns the last date in DateField in the full data set.

  • Set the date to show when the date range picker is opened with Start date.

    Default value is =Min([DateField]). This expression returns the first date in DateField in the current selection.

Setting locale of the calendar

You can set the locale of the calendar to get local names for days and months. Change the setting Locale under Calendar Settings > Language and labels to the two-letter code of the locale you want to use. For example, you can change the default value of en for English to de for German.

Customizing text labels

You can customize the text labels that are shown when the date range picker is used.

You change the text prompt shown when the date range picker is minimized with the setting Default Text under Calendar Settings > Language and labels. The default setting is 'Select date range'.

In date interval mode there are a number of predefined ranges available to pick if Show predefined ranges is set to On. You can customize the text labels for the predefined range selections with the settings under Calendar Settings > Predefined ranges:

  • Custom Range represents the option where you select a date interval freely from the calendar. Default value is Range.
  • Today represents the date value of today. Default value is Today.
  • Yesterday represents the date value of yesterday. Default value is Yesterday.
  • Last $ days represents the two options for showing the last 7 or 30 days. $ is replaced by 7 or 30 in the string. Default value is Last $ days.
  • This Month represents the current month. Default value is This Month.
  • Last Month represents the current month. Default value is Last Month.

Limitations

For information about general limitations, see Limitations of visualization extension bundles supplied by Qlik.

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?