<?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 Need to build a Trend Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-to-build-a-Trend-Chart/m-p/244823#M583631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vladimir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just two thoughts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I don't know how your expression for the months looks like, but if you sum up the rows per columns, you will get what you want, won't you?&lt;/P&gt;&lt;P&gt;So why not remove all dimensions, let only the expressions (resulting in the Worked flag) remaining. Maybe use a sum() around your expression. Then you should have the aggregation over all employees, don't you? &lt;/P&gt;&lt;P&gt;Convert in a bar chart etc. like you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- You could consider using a master table and an interval match to the Hire / Termination dates. Then do a chart based on master calendar month and do a count(ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Sep 2011 23:11:36 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-09-07T23:11:36Z</dc:date>
    <item>
      <title>Need to build a Trend Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-build-a-Trend-Chart/m-p/244822#M583630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have a table with employment data organized the following way:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="TrendNeeded.PNG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7111_TrendNeeded.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;It shows (for each employee) how many months this person worked during the last 7 months.&lt;/P&gt;&lt;P&gt;I do not have much information there except Hire and Termination Dates, but I would need to build a monthly trend chart showing how many employees actually worked during these recent months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the best way to do it?&lt;/P&gt;&lt;P&gt;I would appreciate an advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Vladimir &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 22:08:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-build-a-Trend-Chart/m-p/244822#M583630</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2011-09-07T22:08:09Z</dc:date>
    </item>
    <item>
      <title>Need to build a Trend Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-build-a-Trend-Chart/m-p/244823#M583631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vladimir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just two thoughts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I don't know how your expression for the months looks like, but if you sum up the rows per columns, you will get what you want, won't you?&lt;/P&gt;&lt;P&gt;So why not remove all dimensions, let only the expressions (resulting in the Worked flag) remaining. Maybe use a sum() around your expression. Then you should have the aggregation over all employees, don't you? &lt;/P&gt;&lt;P&gt;Convert in a bar chart etc. like you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- You could consider using a master table and an interval match to the Hire / Termination dates. Then do a chart based on master calendar month and do a count(ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 23:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-build-a-Trend-Chart/m-p/244823#M583631</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-07T23:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need to build a Trend Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-build-a-Trend-Chart/m-p/244824#M583632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm unclear exactly what you're after, but here's an example of tracking employees working each year based only on hire and fire dates.&amp;nbsp; I generate dates in the range using a while loop, but you can do the same with an intervalmatch like Stefan mentioned.&amp;nbsp; There are notes in my script explaining what's going on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 00:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-build-a-Trend-Chart/m-p/244824#M583632</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-09-08T00:38:35Z</dc:date>
    </item>
    <item>
      <title>Need to build a Trend Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-build-a-Trend-Chart/m-p/244825#M583633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks, John. &lt;/P&gt;&lt;P&gt;I was more concerned about building the trend from my data without linking it with Calendar. &lt;/P&gt;&lt;P&gt;I was able to do it with 'crosstable':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;MonthViewTemp:&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;crosstable&lt;/STRONG&gt; (NumOfMonths, WorkedFlag, 1)&lt;BR /&gt;load &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Employee_ID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WorkedCurrMonthFlag as [0],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Worked1MonthsAgoFlag&amp;nbsp; as [1],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Worked2MonthsAgoFlag as [2],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Worked3MonthsAgoFlag as [3],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Worked4MonthsAgoFlag as [4],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Worked5MonthsAgoFlag as [5],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Worked6MonthsAgoFlag as [6]&lt;BR /&gt;Resident PSHRTemp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// where Worked1MonthsAgoFlag, Worked1MonthsAgoFlag, ...,Worked6MonthsAgoFlag are flags from &lt;/P&gt;&lt;P&gt;// the table above.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;MonthView:&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;load *,&lt;BR /&gt; addmonths(monthstart($(vToday)), num#(NumOfMonths)*(-1)) as WorkMonth&lt;BR /&gt;Resident MonthViewTemp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a result I got the followowing:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Headcount_demo.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7135_Headcount_demo.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help and the demo.&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;"&gt;﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 20:11:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-build-a-Trend-Chart/m-p/244825#M583633</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2011-09-08T20:11:13Z</dc:date>
    </item>
    <item>
      <title>Need to build a Trend Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-build-a-Trend-Chart/m-p/244826#M583634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for suggestions, Stefan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found a bit different solution, using 'crosstable':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MonthViewTemp:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;crosstable&lt;/STRONG&gt;&lt;/SPAN&gt; (NumOfMonths, WorkedFlag, 1)&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employee_ID,&lt;/P&gt;&lt;P&gt;WorkedCurrMonthFlag as [0],&lt;/P&gt;&lt;P&gt;Worked1MonthsAgoFlag as [1],&lt;/P&gt;&lt;P&gt;Worked2MonthsAgoFlag as [2],&lt;/P&gt;&lt;P&gt;Worked3MonthsAgoFlag as [3],&lt;/P&gt;&lt;P&gt;Worked4MonthsAgoFlag as [4],&lt;/P&gt;&lt;P&gt;Worked5MonthsAgoFlag as [5],&lt;/P&gt;&lt;P&gt;Worked6MonthsAgoFlag as [6]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident PSHRTemp; &lt;/STRONG&gt;&lt;EM&gt; // original table&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// where Worked1MonthsAgoFlag, Worked1MonthsAgoFlag,...,Worked6MonthsAgoFlag are &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// flags from the table above.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MonthView:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;addmonths(monthstart($(vToday)), num#(NumOfMonths)*(-1))as WorkMonth &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident MonthViewTemp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the result of this approach above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vladimri &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 20:41:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-build-a-Trend-Chart/m-p/244826#M583634</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2011-09-08T20:41:40Z</dc:date>
    </item>
  </channel>
</rss>

