<?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: Show Variance from Average in an additional column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-Variance-from-Average-in-an-additional-column/m-p/913297#M986655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would need the TOTAL qualifier with a field list, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;pick(dimensionality(),NULL(),NULL(),NULL(),NULL(),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;0,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CPU - &lt;STRONG&gt;Avg (TOTAL&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Main_Cat, Sub_Cat, Task_Cat, Task_Name_C, Revision, Language_C&amp;gt; &lt;/SPAN&gt; aggr( CPU, &lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG&gt;Main_Cat, Sub_Cat, Task_Cat, Task_Name_C, Revision, Language_C, Vendor))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2015 08:33:53 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-07-24T08:33:53Z</dc:date>
    <item>
      <title>Show Variance from Average in an additional column</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Variance-from-Average-in-an-additional-column/m-p/913294#M986652</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;Tanks for you time for viewing this post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 6 dimensions in total. The CPU is the expression column. I am displaying the AVERAGE by enable partial sum on Vendor and some manipulation on dimensionality(). The expression is as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it will pick expression for each dimensionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what I want to do is to add an additional column to show the variance of the CPU from the AVERAGE value below it. Is it possible to do it based on what I have now? Or is there any other alternate to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 03:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Variance-from-Average-in-an-additional-column/m-p/913294#M986652</guid>
      <dc:creator />
      <dc:date>2015-07-24T03:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Show Variance from Average in an additional column</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Variance-from-Average-in-an-additional-column/m-p/913295#M986653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure you need this complex average calculation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Won't you get the same results using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;pick(dimensionality(),NULL(),NULL(),NULL(),NULL(),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Avg ( CPU)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-weight: inherit; font-style: inherit; font-size: 10pt;"&gt;CPU)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-weight: inherit; font-style: inherit; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-weight: inherit; font-style: inherit; font-size: 10pt;"&gt;Or maybe &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;pick(dimensionality(),NULL(),NULL(),NULL(),NULL(),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Avg ( aggr( CPU, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Main_Cat, Sub_Cat, Task_Cat, Task_Name_C, Revision, Language_C, Vendor))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,&lt;SPAN style="font-family: inherit; font-weight: inherit; font-style: inherit; font-size: 10pt;"&gt;CPU)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; font-weight: inherit; font-style: inherit; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; font-weight: inherit; font-style: inherit; font-size: 10pt;"&gt;If yes, just replace Avg() by Stdev() to calculate the standard deviation, square this result to get variance.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 07:50:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Variance-from-Average-in-an-additional-column/m-p/913295#M986653</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-24T07:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Show Variance from Average in an additional column</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Variance-from-Average-in-an-additional-column/m-p/913296#M986654</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;Thanks for you reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second expression u gave to calculate the average returns the correct results. &lt;/P&gt;&lt;P&gt;The first one does not work because there is actually a set of the same CPU of different tasks for each vendor, the sum of CPU would be divided by the number of tasks in the set, but not the number of vendors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the variance, I didn't expressed it clearly. What I want is an additional column after the column CPU, showing the difference of each of the CPU to the AVERAGE below it. For example, for the first three rows, it will be like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Vendor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt; 80&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Difference&lt;/P&gt;&lt;P&gt;Alpha&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18.00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.231 (18-17.769)&lt;/P&gt;&lt;P&gt;Pactera&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17.539&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.23&amp;nbsp; (17.539-17.769)&lt;/P&gt;&lt;P&gt;AVERAGE&amp;nbsp; 17.769&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 08:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Variance-from-Average-in-an-additional-column/m-p/913296#M986654</guid>
      <dc:creator />
      <dc:date>2015-07-24T08:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Show Variance from Average in an additional column</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Variance-from-Average-in-an-additional-column/m-p/913297#M986655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would need the TOTAL qualifier with a field list, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;pick(dimensionality(),NULL(),NULL(),NULL(),NULL(),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;0,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CPU - &lt;STRONG&gt;Avg (TOTAL&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Main_Cat, Sub_Cat, Task_Cat, Task_Name_C, Revision, Language_C&amp;gt; &lt;/SPAN&gt; aggr( CPU, &lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG&gt;Main_Cat, Sub_Cat, Task_Cat, Task_Name_C, Revision, Language_C, Vendor))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 08:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Variance-from-Average-in-an-additional-column/m-p/913297#M986655</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-24T08:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Show Variance from Average in an additional column</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Variance-from-Average-in-an-additional-column/m-p/913298#M986656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! The TOTAL qualifier does the trick!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 09:03:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Variance-from-Average-in-an-additional-column/m-p/913298#M986656</guid>
      <dc:creator />
      <dc:date>2015-07-24T09:03:39Z</dc:date>
    </item>
  </channel>
</rss>

