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: 
ocharles
Contributor II
Contributor II

Data Picker Object

I need a way to always default the date picker values to get the First and Last day of any month whether the data is in existence or not.
Example: Month of September 2023

Even if there are no datasets for the beginning of September 2023, I want my filters to always show the full set of dates to display. (09/01/2023 til 09/30/2023)
Concrete Example: Date Selection should always say 09/01/2023 instead of 09/08/2023 indicating that the data was only retrieved beginning 09/08/2023 to 09/30/2023

Labels (1)
2 Solutions

Accepted Solutions
ocharles
Contributor II
Contributor II
Author

Greetings @datagrrl and thank you for the response you provided. I will bring some clarification to my questions. My Dataset does not include the first day of the month like 09/01/2023 but begins in 09/08/2023 but for my date picker on a dimension called "BilledDate" the dimension doesn't contain the 09/01/2023 dates. And the date picker once I add the "BilledDate" as the dimension gives me the Min (BilledDate) as 09/08/2023 Max(BilledDate) as 09/30/2023. I do not want that default date selection. I want my date selections to always be the first and last date of any month regardless of the dataset in the query for the filled (BilledDate).

View solution in original post

datagrrl
Creator III
Creator III

This post might help you more.

https://community.qlik.com/t5/App-Development/Selecting-Date-range-in-Date-picker-from-last-30-days-...

If you use this in combination with a master calendar you should get what you need.

The code I put in the value for the sheet action is 

= '>=' & Date(MonthStart(Today())) & '<=' & Date(MonthEnd(Today()))

Specifically this part of the answer should work for you 

Using Actions (in sheet properties):

1. select action - Select values matching search criteria

2. Choose your date field

3.  Value 

= '>=' & Date(MonthStart(Today())) & '<=' & Date(MonthEnd(Today()))

 

 

 

View solution in original post

4 Replies
datagrrl
Creator III
Creator III

Maybe I am misunderstanding what you are asking, it sounds to me like you might need to create a master calendar.

This is a really old video, but I think it explains the concept.

https://community.qlik.com/t5/QlikView-App-Dev/Creating-A-Master-Calendar/td-p/341286

 

I have included a script I use for Master Calendars in the attached App. I am not sure what you are saying when referring to "Any Month" but this should help.

 

 

 

ocharles
Contributor II
Contributor II
Author

Greetings @datagrrl and thank you for the response you provided. I will bring some clarification to my questions. My Dataset does not include the first day of the month like 09/01/2023 but begins in 09/08/2023 but for my date picker on a dimension called "BilledDate" the dimension doesn't contain the 09/01/2023 dates. And the date picker once I add the "BilledDate" as the dimension gives me the Min (BilledDate) as 09/08/2023 Max(BilledDate) as 09/30/2023. I do not want that default date selection. I want my date selections to always be the first and last date of any month regardless of the dataset in the query for the filled (BilledDate).

datagrrl
Creator III
Creator III

This post might help you more.

https://community.qlik.com/t5/App-Development/Selecting-Date-range-in-Date-picker-from-last-30-days-...

If you use this in combination with a master calendar you should get what you need.

The code I put in the value for the sheet action is 

= '>=' & Date(MonthStart(Today())) & '<=' & Date(MonthEnd(Today()))

Specifically this part of the answer should work for you 

Using Actions (in sheet properties):

1. select action - Select values matching search criteria

2. Choose your date field

3.  Value 

= '>=' & Date(MonthStart(Today())) & '<=' & Date(MonthEnd(Today()))

 

 

 

ocharles
Contributor II
Contributor II
Author

Thank you @datagrrl it worked splendidly. Another question if I may. Can you provide an expression that can sum a straight table column and when the user filter the column, the sum changes in a textbox object.