<?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: Plotting dates into a calendar table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Plotting-dates-into-a-calendar-table/m-p/2145122#M93178</link>
    <description>&lt;P&gt;Prashant - that's fantastic, thank you so much, that really put things in perspective for me and gives me a great start to this analysis.&amp;nbsp; Really appreciate you taking the time to provide the solution.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2023 07:04:14 GMT</pubDate>
    <dc:creator>krisslax</dc:creator>
    <dc:date>2023-12-07T07:04:14Z</dc:date>
    <item>
      <title>Plotting dates into a calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Plotting-dates-into-a-calendar-table/m-p/2144689#M93140</link>
      <description>&lt;P&gt;So, I have an absence table, which I'd like to load into a calendar type table plotting how much resource we have available on a particular day.&lt;BR /&gt;&lt;BR /&gt;Absence Table:&lt;/P&gt;
&lt;TABLE width="278"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;EMP_NO&lt;/TD&gt;
&lt;TD width="75"&gt;DATE_FROM&lt;/TD&gt;
&lt;TD width="75"&gt;DATE_TO&lt;/TD&gt;
&lt;TD width="64"&gt;DURATION&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;01/01/2023&lt;/TD&gt;
&lt;TD&gt;03/01/2023&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;03/01/2023&lt;/TD&gt;
&lt;TD&gt;04/01/2023&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;02/01/2023&lt;/TD&gt;
&lt;TD&gt;02/01/2023&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;15/02/2023&lt;/TD&gt;
&lt;TD&gt;15/02/2023&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;22/02/2023&lt;/TD&gt;
&lt;TD&gt;23/02/2023&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;23/02/2023&lt;/TD&gt;
&lt;TD&gt;25/02/2023&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My plan is to load each date in the next 2 weeks from today from a master calendar.&amp;nbsp; So if I was to pick a particular date from this calendar on chart/filter, a table will be able to show me how many people are on annual leave.&lt;BR /&gt;&lt;BR /&gt;So for example from the table above:&lt;/P&gt;
&lt;P&gt;On the 01/01/2023, it would show Employee 1 on leave.&lt;/P&gt;
&lt;P&gt;On the 02/01/2023, it would show Employees 1 and 3 on leave.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I've been playing with the data but honestly don't even know where to start with it.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 08:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Plotting-dates-into-a-calendar-table/m-p/2144689#M93140</guid>
      <dc:creator>krisslax</dc:creator>
      <dc:date>2023-12-06T08:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting dates into a calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Plotting-dates-into-a-calendar-table/m-p/2145118#M93177</link>
      <description>&lt;P&gt;you have to generate the records which comes under that date range&lt;/P&gt;
&lt;P&gt;try below&lt;/P&gt;
&lt;P&gt;Load EMP_NO, DATE_FROM, DATE_TO, date(DATE_FROM + IterNo() - 1) as ABSENCE_DATE&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From table_name&lt;/P&gt;
&lt;P&gt;while DATE_FROM + IterNo() - 1 &amp;lt;= DATE_TO;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Prashant Sangle&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 06:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Plotting-dates-into-a-calendar-table/m-p/2145118#M93177</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2023-12-07T06:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting dates into a calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Plotting-dates-into-a-calendar-table/m-p/2145122#M93178</link>
      <description>&lt;P&gt;Prashant - that's fantastic, thank you so much, that really put things in perspective for me and gives me a great start to this analysis.&amp;nbsp; Really appreciate you taking the time to provide the solution.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 07:04:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Plotting-dates-into-a-calendar-table/m-p/2145122#M93178</guid>
      <dc:creator>krisslax</dc:creator>
      <dc:date>2023-12-07T07:04:14Z</dc:date>
    </item>
  </channel>
</rss>

