<?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 Creating a Bar Chart &amp; Pivot Table with Variance Calculations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68594#M775502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have two questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;My aim is to create a a bar chart that has 2 year dimensions (2017, 2018) that should accumulate per employee for the number of leave days taken. For instance, if Employee A took 4 days of leave in 2017 and then 5 in 2018 - The bar graph should show both 2017 and 2018 as one bar but accumulate. It would show as 9 days but 2017 would be 4 days and 2018 would be indicated as 5.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; How best can I achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I would then like to create a Pivot table where each employees name would be listed and then a view of each month would be across the pivot table. Each column would have a month comparison from the previous year. eg April 2017 for Employee A would have 5 days and then April 2018 would have 3 days, there should be a variance column that would reflect a difference of 2 days.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; How do I create this along with the Syntax?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Creating a Bar Chart &amp; Pivot Table with Variance Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68594#M775502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have two questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;My aim is to create a a bar chart that has 2 year dimensions (2017, 2018) that should accumulate per employee for the number of leave days taken. For instance, if Employee A took 4 days of leave in 2017 and then 5 in 2018 - The bar graph should show both 2017 and 2018 as one bar but accumulate. It would show as 9 days but 2017 would be 4 days and 2018 would be indicated as 5.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; How best can I achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I would then like to create a Pivot table where each employees name would be listed and then a view of each month would be across the pivot table. Each column would have a month comparison from the previous year. eg April 2017 for Employee A would have 5 days and then April 2018 would have 3 days, there should be a variance column that would reflect a difference of 2 days.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; How do I create this along with the Syntax?&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/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68594#M775502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Bar Chart &amp; Pivot Table with Variance Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68595#M775503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(RangeSum(Above(Count(Leave), 0, RowNo())), Employee, Year)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) What syntax? Do you have a sample you can share to show what you have... so that we can help better&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;How do I create this along with the Syntax?&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 11:48:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68595#M775503</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-08T11:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Bar Chart &amp; Pivot Table with Variance Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68596#M775504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny- Thanks for your speedy response&lt;/P&gt;&lt;P&gt;I'm relatively new to Qlik, please could you explain step by step how to carry out this for question no.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) what columns would be the dimensions be as well as the expressions. Where would the expression you provided be typed in?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I will provide the sample data for question 2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 11:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68596#M775504</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-08T11:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Bar Chart &amp; Pivot Table with Variance Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68597#M775505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohbeen, welcome to the world of Qlik... I am not sure what you mean when you say that you want to know the steps. There are no steps... All you need is a bar chart with two dimensions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Year&lt;/P&gt;&lt;P&gt;2) Employee&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use the expression that I gave above and it should most likely work... if for some reason it doesn't work and you are using QV12 or above or Qlik Sense, you can try this expression&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Aggr(RangeSum(Above(Count(Leave), 0, RowNo())), Employee, &lt;SPAN style="color: #ff0000;"&gt;(&lt;/SPAN&gt;Year&lt;SPAN style="color: #ff0000;"&gt;, (NUMERIC))&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above syntax is a new option that came out with QV12. You can read about it more here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4673"&gt;The sortable Aggr function is finally here!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 12:04:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68597#M775505</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-08T12:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Bar Chart &amp; Pivot Table with Variance Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68598#M775506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny! Worked fantastic!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how it came out :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Bar graph.PNG" class="jive-image image-1" src="/legacyfs/online/201830_Bar graph.PNG" style="height: 336px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I know how to change it to a stacked bar graph, however how do I stack both 2017 and 2018 per employee?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 12:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68598#M775506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-08T12:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Bar Chart &amp; Pivot Table with Variance Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68599#M775507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess in that case, you might need to switch your dimensions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Employee&lt;/P&gt;&lt;P&gt;2) Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then select the stacking&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 12:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68599#M775507</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-08T12:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Bar Chart &amp; Pivot Table with Variance Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68600#M775508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With regards to Question 2, here's a sample of what I'm trying to achieve but with a pivot table or table view:&lt;/P&gt;&lt;P&gt;The dimensions Would be Employee and Leave, what would the expressions look like?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Variance.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201831_Variance.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 12:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68600#M775508</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-08T12:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Bar Chart &amp; Pivot Table with Variance Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68601#M775511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would use set analysis to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;MonthYear = {"$(=Date(Max(MonthYear), 'MMM-YY'))"}&amp;gt;}Measure)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;MonthYear = {"$(=Date(AddYears(Max(MonthYear), -1), 'MMM-YY'))"}&amp;gt;}Measure)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression3&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Column(1) - Column(2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where MonthYear is created in the script like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(MonthStart(DateField), 'MMM-YY') as MonthYear&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 13:02:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68601#M775511</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-08T13:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Bar Chart &amp; Pivot Table with Variance Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68602#M775513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! Appreciate it Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 13:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Bar-Chart-Pivot-Table-with-Variance-Calculations/m-p/68602#M775513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-08T13:14:40Z</dc:date>
    </item>
  </channel>
</rss>

