<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Filtering with calendar objects in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filtering-with-calendar-objects/m-p/271809#M101851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;None can help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Sep 2011 13:19:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-22T13:19:26Z</dc:date>
    <item>
      <title>Filtering with calendar objects</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-with-calendar-objects/m-p/271806#M101848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all...&lt;/P&gt;&lt;P&gt;i've this type of problem,&lt;/P&gt;&lt;P&gt;i use two calendar object to set the start date and the end date of a period to filter the content of a table.&lt;/P&gt;&lt;P&gt;the filter is working correctly when in the range of date there are data to display but when for example&amp;nbsp; i select a short perdiod and in this range of time no data is included, my table show all the records instead of no record.&lt;/P&gt;&lt;P&gt;I'd like to know if it's possible to make the table showing no records and how.&lt;/P&gt;&lt;P&gt;If necessary i can post an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your support and your time.&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 10:10:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-with-calendar-objects/m-p/271806#M101848</guid>
      <dc:creator />
      <dc:date>2011-09-19T10:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering with calendar objects</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-with-calendar-objects/m-p/271807#M101849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, an example would be nice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in general you need 1 data island. Put the date of this island in your dimension. &lt;/P&gt;&lt;P&gt;Because the island has al the calender dates, all dates will be shown even if there are no facts...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: you can also couple your island to your facts table.... if you don't get any loops&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you get an island with this code: (Thanks to the other poster on this forum!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vDateMin = Num(MakeDate(2010,1,1));&amp;nbsp; &lt;/P&gt;&lt;P&gt;LET vDateMax = Floor(MonthEnd(Today()));&amp;nbsp; &lt;/P&gt;&lt;P&gt;LET vDateToday = Num(Today());&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempCalendar:&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;$(vDateMin) + RowNo() - 1 AS DateNumber,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Date($(vDateMin) + RowNo() - 1) AS TempDate&amp;nbsp; &lt;/P&gt;&lt;P&gt;AUTOGENERATE 1&amp;nbsp; &lt;/P&gt;&lt;P&gt;WHILE $(vDateMin)+IterNo()-1&amp;lt;= $(vDateMax);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Date(TempDate) AS Tempdate_key,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Standard Date Objects&lt;/P&gt;&lt;P&gt;Day(TempDate) AS CalendarDayOfMonth,&amp;nbsp; &lt;/P&gt;&lt;P&gt;WeekDay(TempDate) AS CalendarDayName,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Week(TempDate) AS CalendarWeekOfYear,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Month(TempDate) AS CalendarMonthName,&amp;nbsp; &lt;/P&gt;&lt;P&gt;'Q' &amp;amp; Ceil(Month(TempDate)/3) AS CalendarQuarter,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Year(TempDate) AS CalendarYear,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Calendar Date Names&amp;nbsp; &lt;/P&gt;&lt;P&gt;WeekName(TempDate) as CalendarWeekNumberAndYear,&amp;nbsp; &lt;/P&gt;&lt;P&gt;MonthName(TempDate) as CalendarMonthAndYear,&amp;nbsp; &lt;/P&gt;&lt;P&gt;QuarterName(TempDate) as CalendarQuarterMonthsAndYear,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Start Dates&amp;nbsp; &lt;/P&gt;&lt;P&gt;DayStart(TempDate) as CalendarDayStart,&amp;nbsp; &lt;/P&gt;&lt;P&gt;WeekStart(TempDate) as CalendarWeekStart,&amp;nbsp; &lt;/P&gt;&lt;P&gt;MonthStart(TempDate) as CalendarMonthStart,&amp;nbsp; &lt;/P&gt;&lt;P&gt;QuarterStart(TempDate) as CalendarQuarterStart,&amp;nbsp; &lt;/P&gt;&lt;P&gt;YearStart(TempDate) as CalendarYearStart,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// End Dates&amp;nbsp; &lt;/P&gt;&lt;P&gt;DayEnd(TempDate) as CalendarDayEnd,&amp;nbsp; &lt;/P&gt;&lt;P&gt;WeekEnd(TempDate) as CalendarWeekEnd,&amp;nbsp; &lt;/P&gt;&lt;P&gt;MonthEnd(TempDate) as CalendarMonthEnd,&amp;nbsp; &lt;/P&gt;&lt;P&gt;QuarterEnd(TempDate) as CalendarQuarterEnd,&amp;nbsp; &lt;/P&gt;&lt;P&gt;YearEnd(TempDate) as CalendarYearEnd,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Combo Date Examples&amp;nbsp; &lt;/P&gt;&lt;P&gt;'Q' &amp;amp; Ceil(Month(TempDate)/3) &amp;amp; '/' &amp;amp; Year(TempDate) AS CalendarQuarterAndYear,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Year(TempDate) &amp;amp; '/' &amp;amp; 'Q' &amp;amp; Ceil(Month(TempDate)/3) AS CalendarYearAndQuarter,&amp;nbsp; &lt;/P&gt;&lt;P&gt;'Wed ' &amp;amp; DayStart(WeekStart(TempDate) + 3) as CalendarWednesdays&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT TempCalendar ORDER BY TempDate ASC;&amp;nbsp; &lt;/P&gt;&lt;P&gt;DROP TABLE TempCalendar;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//datums voor de reporting month selection box&lt;/P&gt;&lt;P&gt;Reporting_dates: load Distinct &lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CalendarMonthStart as Tempdate_key, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CalendarMonthName as reporting_month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CalendarYear as reporting_year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//CalendarMonthStart as reporting_date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;num(CalendarMonthStart) as reporting_date Resident Calendar;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comparison_date: load Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;num(CalendarMonthStart) as comparison_date&amp;nbsp; Resident Calendar;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 11:14:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-with-calendar-objects/m-p/271807#M101849</guid>
      <dc:creator />
      <dc:date>2011-09-19T11:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering with calendar objects</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-with-calendar-objects/m-p/271808#M101850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply but what i need is not creating a calendar or a structure similar.&lt;/P&gt;&lt;P&gt;I've alreadey created 2 calendar structure, one for the start date and one for the end date.&lt;/P&gt;&lt;P&gt;Now i've attacched the example.&lt;/P&gt;&lt;P&gt;If you try to select in start date 01/01/2011 and in end date 31/05/2011 you will see that the filter will be applied and all is right.&lt;/P&gt;&lt;P&gt;if you try to select in start date 01/01/2011 and in end date 31/01/2011 you will see that all data will be displayed even if no data is in the range.&lt;/P&gt;&lt;P&gt;Wat i want from the filter (if it's possible) is that no data will be displayed in the table or a message will be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 10:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-with-calendar-objects/m-p/271808#M101850</guid>
      <dc:creator />
      <dc:date>2011-09-20T10:19:48Z</dc:date>
    </item>
    <item>
      <title>Filtering with calendar objects</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-with-calendar-objects/m-p/271809#M101851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;None can help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 13:19:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-with-calendar-objects/m-p/271809#M101851</guid>
      <dc:creator />
      <dc:date>2011-09-22T13:19:26Z</dc:date>
    </item>
    <item>
      <title>Filtering with calendar objects</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-with-calendar-objects/m-p/271810#M101852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, your qvw starts to reload when i open it... think you have a macro?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 14:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-with-calendar-objects/m-p/271810#M101852</guid>
      <dc:creator />
      <dc:date>2011-09-22T14:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering with calendar objects</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-with-calendar-objects/m-p/271811#M101853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 15:31:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-with-calendar-objects/m-p/271811#M101853</guid>
      <dc:creator />
      <dc:date>2011-09-22T15:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering with calendar objects</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-with-calendar-objects/m-p/271812#M101854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you have a slider on the field....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 15:54:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-with-calendar-objects/m-p/271812#M101854</guid>
      <dc:creator />
      <dc:date>2011-09-22T15:54:17Z</dc:date>
    </item>
  </channel>
</rss>

