Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
LuisNTT
Contributor
Contributor

Date Range Picker "No data available for the range selected"

I have a master calendar table with the entire date range, but when I try to select a date range, I get the message "No data available for the selected range".

After some digging it looks like date format issue, but tried all possible combinations and it still doesn't filter correctly the dates you selected.
Attached screenshot in case it helps.

LuisNTT_0-1685007767509.png

Can somebody help me?

Thank you

Labels (1)
5 Replies
md_talib
Contributor III
Contributor III

Your master calendar is linked or unlinked ? and if it is possible please share the expression.

Hania
Creator
Creator

is it possible for you to share your master calendar scrip ? 

it might be possible that your dates are no generated .

LuisNTT
Contributor
Contributor
Author

Thanks for the responses, I'll try to answer both of them:

The master calendar table is linked to the table that I require to filter the data on.
The expression is: date(CalendarDate,'D/M/YYYY').

The script is:

MinMaxDate:
load
Min(StartDateScheduleSubject) as MinDate,
mAX(GR_EndDateScheduleSubject) as MaxDate
resident TSubjectsDatesAddendums;

Let vMinDate = peek('MinDate',-1,'MinMaxDate') -1 ;
Let vMaxDate = peek('MaxDate',-1,'MinMaxDate') ;
DropTables MinMaxDate ;

dates:
Load *,
Year(Date) & '/' & Month(Date) as monthyear,
Year(Date) as Year,
Month(Date) as Month;
// Day(Date) as Day;
Load Date($(vMinDate) + recno()) as Date
autogenerate $(vMaxDate) - $(vMinDate) ;
Hania
Creator
Creator

As your script working properly just do the slightly changes in line no: 8. add space between drop table

I think  you need to check your base data that you're getting.

hope this helpful.

MacB
Partner - Contributor
Partner - Contributor