<?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 a new count table for a table with intervals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-new-count-table-for-a-table-with-intervals/m-p/138020#M762144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find the Attached the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2018 08:28:29 GMT</pubDate>
    <dc:creator>mdmukramali</dc:creator>
    <dc:date>2018-07-30T08:28:29Z</dc:date>
    <item>
      <title>Create a new count table for a table with intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-count-table-for-a-table-with-intervals/m-p/138017#M762141</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;&lt;/P&gt;&lt;P&gt;following is the data set which i extracted from the data base ( Query 1 and Table 1 ).&lt;/P&gt;&lt;P&gt;can anyone please help me to get the out put as follows ( Table 2 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my case :&lt;/P&gt;&lt;P&gt;Table 1 has the employee id and his or her career start date and and career end date.&lt;/P&gt;&lt;P&gt;i want to create a table ( Table 2 ) to get the active employee count for the year and month.&lt;/P&gt;&lt;P&gt;for an instance, if the year is 2018 and month is JAN, then the active employees as of 31/01/2018 count should be calculated as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 634px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="634"&gt;COUNT (DISTINCT IF (EMP_START_DATE&amp;lt;=MonthEndDate and&amp;nbsp; MonthEndDate&amp;lt;EMP_END_DATE, EMP_ID))&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where MonthEndDate&amp;nbsp; is &lt;SPAN style="font-size: 13.3333px;"&gt;31/01/2018 for the above example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can we create the solution table using SQL or Qlikview.? Any of the way is expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Your help would be really appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Madushan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query 1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/209225_Capture1.JPG" style="font-size: 13.3333px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/209226_Capture2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/209227_Capture3.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-count-table-for-a-table-with-intervals/m-p/138017#M762141</guid>
      <dc:creator>madushanfernand</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new count table for a table with intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-count-table-for-a-table-with-intervals/m-p/138018#M762142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can follow the Mr. &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌ below post which will help you to full fill your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2940"&gt;Creating Reference Dates for Intervals&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly find the attached application which I have created a sample document based on employee HireDate and EndDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have any further help do let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohammed Mukram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 06:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-count-table-for-a-table-with-intervals/m-p/138018#M762142</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2018-07-30T06:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new count table for a table with intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-count-table-for-a-table-with-intervals/m-p/138019#M762143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mukram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your response.&lt;/P&gt;&lt;P&gt;i have gone through the post. but couldn't find which you have attached.&lt;/P&gt;&lt;P&gt;could you please send me the attachment again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 07:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-count-table-for-a-table-with-intervals/m-p/138019#M762143</guid>
      <dc:creator>madushanfernand</dc:creator>
      <dc:date>2018-07-30T07:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new count table for a table with intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-count-table-for-a-table-with-intervals/m-p/138020#M762144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find the Attached the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 08:28:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-count-table-for-a-table-with-intervals/m-p/138020#M762144</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2018-07-30T08:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new count table for a table with intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-count-table-for-a-table-with-intervals/m-p/138021#M762145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much for your assistance, this is what exactly i wanted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 11:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-count-table-for-a-table-with-intervals/m-p/138021#M762145</guid>
      <dc:creator>madushanfernand</dc:creator>
      <dc:date>2018-07-30T11:36:21Z</dc:date>
    </item>
  </channel>
</rss>

