<?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: Std Dev in a pivot table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103819#M7030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Elijah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(GetObjectDimension(Dimensionality()-1)='Division',Stdev(aggr(sum([Daily Profit]),Date)),Stdev([Daily Profit]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/208292_Untitled.png" style="height: 715px; width: 620px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2018 10:32:34 GMT</pubDate>
    <dc:creator>kaanerisen</dc:creator>
    <dc:date>2018-07-19T10:32:34Z</dc:date>
    <item>
      <title>Std Dev in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103811#M7022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem where I need to be able to display Standard Deviation in a pivot table. The biggest issue is that it needs to be calculating the standard deviation of the Daily net regardless of the first dimension in the pivot rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, given the below data:&lt;/P&gt;&lt;DIV&gt;&lt;TABLE border="1" class="jiveBorder" height="149" style="border: 1px solid rgb(0, 0, 0); font-size: 13px; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Lucida Grande&amp;quot;, sans-serif; color: rgb(61, 61, 61); width: 316px;"&gt;&lt;THEAD style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;Division&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;Department&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Daily Profit&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;6/3/2018&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;A&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;A1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;6/4/2018&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;A&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;A1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;6/5/2018&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;A&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;A1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;6/4/2018&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;A&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;A2&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;-30&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;6/5/2018&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;A&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;A2&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our pivot table, with Divisionas the first dimension in the "Rows" section, it should be taking stdev(50, 30, 40) because we only care about he standard deviation of the daily total values (daily totals shown below).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="104" style="border: 1px solid rgb(0, 0, 0); font-size: 13px; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Lucida Grande&amp;quot;, sans-serif; color: rgb(61, 61, 61); width: 312px; height: 106px;"&gt;&lt;THEAD style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;Division&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Daily TOTAL&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;6/3/2018&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;A&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;6/4/2018&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;A&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;6/5/2018&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;A&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Department as the first dimension in the "Rows" section of the pivot table, it should take stdev(50, 60, 10) for division A1, and stdev(-30, 30) for A2, since these are the daily totals for those divisions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on which formula I could use to calculate this? Thank you in advance for all help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the following, then&amp;nbsp; for Division it will take the stdev(50, 60, 10, -30, 30): &lt;/P&gt;&lt;P&gt;stdev(aggr(Sum(Daily Profit),Division,Department,Date))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 18:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103811#M7022</guid>
      <dc:creator>elijahabel</dc:creator>
      <dc:date>2018-07-18T18:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Std Dev in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103812#M7023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Stdev(Aggr(Sum([Daily Profit]), Date))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 18:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103812#M7023</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-18T18:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Std Dev in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103813#M7024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I try this, many of the Standard Deviation values for Divisions show up as "-". Not sure why this is, but when I filter for a single division, its value will change from "-" to a number even if no other filters are selected. I do not understand why the Standard deviation would change when none of the Daily Profit values under the Division have after filtering.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 19:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103813#M7024</guid>
      <dc:creator>elijahabel</dc:creator>
      <dc:date>2018-07-18T19:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Std Dev in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103814#M7025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&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(NODISTINCT Stdev(Aggr(Sum([Daily Profit]), Date)), Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 19:40:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103814#M7025</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-18T19:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Std Dev in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103815#M7026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or may be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Stdev(TOTAL Aggr(Sum([Daily Profit]), Date))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 19:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103815#M7026</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-18T19:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Std Dev in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103816#M7027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No luck with these either.&lt;/P&gt;&lt;P&gt;&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(NODISTINCT Stdev(Aggr(Sum([Daily Profit]), Date)), Date) &lt;/STRONG&gt;results in "-" no matter the drilldown level.&lt;/P&gt;&lt;P&gt;&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;Stdev(TOTAL Aggr(Sum([Daily Profit]), Date)) &lt;/STRONG&gt;results in all divisions having the same Stdev&amp;nbsp; value, whereas each should have their own independent value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 20:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103816#M7027</guid>
      <dc:creator>elijahabel</dc:creator>
      <dc:date>2018-07-18T20:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Std Dev in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103817#M7028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to check this out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 01:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103817#M7028</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-19T01:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Std Dev in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103818#M7029</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;the only way I see is to add Date as dimension :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so use stdev(Daily Profit) as formula !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use dimensionality() to display stdev and not row daily details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 08:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103818#M7029</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-07-19T08:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Std Dev in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103819#M7030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Elijah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(GetObjectDimension(Dimensionality()-1)='Division',Stdev(aggr(sum([Daily Profit]),Date)),Stdev([Daily Profit]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/208292_Untitled.png" style="height: 715px; width: 620px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 10:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103819#M7030</guid>
      <dc:creator>kaanerisen</dc:creator>
      <dc:date>2018-07-19T10:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Std Dev in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103820#M7031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works very well for this case, so thank you! Do you know how this solution could be expanded for more than 2 dimensions? Let's say there was a third dimension named "Store" - would there be a way to do this intricately without nested IF statements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We actually use more than 2 dimensions in the case I'm looking for help on, I just can't post proprietary stuff on here, so I used this example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 18:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Std-Dev-in-a-pivot-table/m-p/103820#M7031</guid>
      <dc:creator>elijahabel</dc:creator>
      <dc:date>2018-07-20T18:22:10Z</dc:date>
    </item>
  </channel>
</rss>

