<?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: Create chart from dates range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-chart-from-dates-range/m-p/550428#M205564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimension is not the number of days between the endDate and startdate. It should be the days in that interval, from 1 to 7. The purpose is to know how many ids are active each day of the month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Aug 2013 19:49:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-01T19:49:11Z</dc:date>
    <item>
      <title>Create chart from dates range</title>
      <link>https://community.qlik.com/t5/QlikView/Create-chart-from-dates-range/m-p/550426#M205562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with 3 fields: id, startDate and endDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="70" style="border: 1px solid #000000; width: 246px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;id&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;startDate&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc; text-align: center;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;endDate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;08/01/2013&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;08/05/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;08/04/2013&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;08/07/2013&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;y-axis: number of ids between the startDate and endDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x-axis: days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/message/374979/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/message/374979/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="chart.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/44867_chart.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;This is the chart I need. I want to count the number of ids that are between the startDate and endDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how I can do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Juan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 18:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-chart-from-dates-range/m-p/550426#M205562</guid>
      <dc:creator />
      <dc:date>2013-08-01T18:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create chart from dates range</title>
      <link>https://community.qlik.com/t5/QlikView/Create-chart-from-dates-range/m-p/550427#M205563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the interval of your dates in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set DateFormat = 'MM/DD/YYYY';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; startDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endDate - startDate as interval&lt;/P&gt;&lt;P&gt;FROM ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create a chart with dimension inteval and count(id) as expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 19:35:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-chart-from-dates-range/m-p/550427#M205563</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-08-01T19:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create chart from dates range</title>
      <link>https://community.qlik.com/t5/QlikView/Create-chart-from-dates-range/m-p/550428#M205564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimension is not the number of days between the endDate and startdate. It should be the days in that interval, from 1 to 7. The purpose is to know how many ids are active each day of the month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 19:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-chart-from-dates-range/m-p/550428#M205564</guid>
      <dc:creator />
      <dc:date>2013-08-01T19:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create chart from dates range</title>
      <link>https://community.qlik.com/t5/QlikView/Create-chart-from-dates-range/m-p/550429#M205565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekDay(startDate+iterno()-1) as weekday, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(startDate+iterno()-1) as date &lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;id,&amp;nbsp;&amp;nbsp;&amp;nbsp; startDate,&amp;nbsp;&amp;nbsp;&amp;nbsp; endDate&lt;/P&gt;&lt;P&gt;1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 08/01/2013,&amp;nbsp;&amp;nbsp;&amp;nbsp; 08/05/2013&lt;/P&gt;&lt;P&gt;2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 08/04/2013,&amp;nbsp;&amp;nbsp;&amp;nbsp; 08/07/2013&lt;/P&gt;&lt;P&gt;] WHILE startDate +iterno()-1 &amp;lt;= endDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use weekday or num(weekday) as dimension and count(id) as expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 20:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-chart-from-dates-range/m-p/550429#M205565</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-08-01T20:22:01Z</dc:date>
    </item>
  </channel>
</rss>

