<?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 Re: MasterCalendar with Start and Enddate in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/MasterCalendar-with-Start-and-Enddate/m-p/2065295#M87370</link>
    <description>&lt;P&gt;May be this below script can help with some modifications as per your needs&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LET vMin = Num(MakeDate(2020));&lt;/P&gt;
&lt;P&gt;LET vMax = Num(MakeDate(2023));&lt;/P&gt;
&lt;P&gt;Master Calendar:&lt;BR /&gt;LOAD&lt;/P&gt;
&lt;P&gt;Date(floor(MonthEnd($(vMin),IterNo()-1)),'MMM-YY') as [Month Year]&lt;/P&gt;
&lt;P&gt;AutoGenerate 1&lt;/P&gt;
&lt;P&gt;While MonthStart($(vMin),IterNo()-1) &amp;lt;= $(vMax);&lt;/P&gt;
&lt;P&gt;OR take help from this post -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/How-to-create-calender-with-start-date-and-end-date-with-in-same/td-p/1662124" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/How-to-create-calender-with-start-date-and-end-date-with-in-same/td-p/1662124&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2023 13:29:09 GMT</pubDate>
    <dc:creator>Digvijay_Singh</dc:creator>
    <dc:date>2023-04-27T13:29:09Z</dc:date>
    <item>
      <title>MasterCalendar with Start and Enddate</title>
      <link>https://community.qlik.com/t5/App-Development/MasterCalendar-with-Start-and-Enddate/m-p/2065175#M87363</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I'm new to QlikView and I have a problem getting the MasterCalendar in my application to work and I hope you can help me out.&lt;/P&gt;
&lt;P&gt;My data consists of a StartDate and an EndDate and my goal is to be able to select a Year and select all of the data which includes the selected year between StartDate and EndDate.&lt;/P&gt;
&lt;P&gt;Since I have two different Dates I have trouble properly getting the calendar to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any guidance is much appreciated,&lt;/P&gt;
&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 09:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/MasterCalendar-with-Start-and-Enddate/m-p/2065175#M87363</guid>
      <dc:creator>Secu</dc:creator>
      <dc:date>2023-04-27T09:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: MasterCalendar with Start and Enddate</title>
      <link>https://community.qlik.com/t5/App-Development/MasterCalendar-with-Start-and-Enddate/m-p/2065295#M87370</link>
      <description>&lt;P&gt;May be this below script can help with some modifications as per your needs&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LET vMin = Num(MakeDate(2020));&lt;/P&gt;
&lt;P&gt;LET vMax = Num(MakeDate(2023));&lt;/P&gt;
&lt;P&gt;Master Calendar:&lt;BR /&gt;LOAD&lt;/P&gt;
&lt;P&gt;Date(floor(MonthEnd($(vMin),IterNo()-1)),'MMM-YY') as [Month Year]&lt;/P&gt;
&lt;P&gt;AutoGenerate 1&lt;/P&gt;
&lt;P&gt;While MonthStart($(vMin),IterNo()-1) &amp;lt;= $(vMax);&lt;/P&gt;
&lt;P&gt;OR take help from this post -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/How-to-create-calender-with-start-date-and-end-date-with-in-same/td-p/1662124" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/How-to-create-calender-with-start-date-and-end-date-with-in-same/td-p/1662124&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 13:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/MasterCalendar-with-Start-and-Enddate/m-p/2065295#M87370</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2023-04-27T13:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: MasterCalendar with Start and Enddate</title>
      <link>https://community.qlik.com/t5/App-Development/MasterCalendar-with-Start-and-Enddate/m-p/2065407#M87390</link>
      <description>&lt;P&gt;// Step 1: Load the data&lt;/P&gt;
&lt;P&gt;MyData:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Year(StartDate) as StartYear,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Year(EndDate) as EndYear&lt;/P&gt;
&lt;P&gt;FROM MyDataSource;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// Step 2: Set the variables for the selected year&lt;/P&gt;
&lt;P&gt;LET vSelectedYear = 2022; // Change this to the selected year&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// Step 3: Filter the data based on the selected year&lt;/P&gt;
&lt;P&gt;FilteredData:&lt;/P&gt;
&lt;P&gt;LOAD *&lt;/P&gt;
&lt;P&gt;RESIDENT MyData&lt;/P&gt;
&lt;P&gt;WHERE StartYear &amp;lt;= vSelectedYear AND EndYear &amp;gt;= vSelectedYear;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// Step 4: Drop the unnecessary fields&lt;/P&gt;
&lt;P&gt;DROP FIELDS StartYear, EndYear;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 17:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/MasterCalendar-with-Start-and-Enddate/m-p/2065407#M87390</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2023-04-27T17:41:11Z</dc:date>
    </item>
  </channel>
</rss>

