<?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: StDev of sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888910#M469691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming vUB works on its own (ie as expression in the chart =$(vUB) ), then you should be able use an Aggr() like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=stdev(Aggr(($(vUB)), dim1, ...&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where dim1, ... is a comma separated list of all the chart/table dimensions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2015 09:14:34 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2015-06-24T09:14:34Z</dc:date>
    <item>
      <title>StDev of sum</title>
      <link>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888906#M469687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this Variable vUB (works great) which concists of the below expression:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vUB =&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[FLOW TYPE]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'Actual EOD (OLD DATA)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AMOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;-&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[FLOW TYPE]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'TCM&amp;nbsp; (OLD DATA)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AMOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;-&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[FLOW TYPE]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'FW&amp;nbsp; (OLD DATA)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AMOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;-&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[FLOW TYPE]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'O (Active) (OLD DATA)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AMOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;-&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[FLOW TYPE]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'T (OLD DATA)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AMOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;-&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[FLOW TYPE]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'S (OLD DATA)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AMOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;-&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[FLOW TYPE]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'W → (OLD DATA)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AMOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;-&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[FLOW TYPE]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'1W (OLD DATA)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AMOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;However when i try to calculate the StDev results as per below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;stdev&lt;/SPAN&gt;(&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;vUB&lt;/EM&gt;&lt;/STRONG&gt;)&amp;nbsp; = null &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;stdev&lt;/SPAN&gt;($(&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;vUB&lt;/EM&gt;&lt;/STRONG&gt;)) = error &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;any ideas? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Rgds,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Olle &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 07:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888906#M469687</guid>
      <dc:creator />
      <dc:date>2015-06-24T07:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: StDev of sum</title>
      <link>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888907#M469688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that the expression doesn't work because Sum and StDev are both aggregation functions, so you have to use stdev as you use sum, not togheter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 08:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888907#M469688</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-06-24T08:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: StDev of sum</title>
      <link>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888908#M469689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see, so I have to use aggr some way in my expressions?&lt;/P&gt;&lt;P&gt;Could you pls give me an example? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 09:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888908#M469689</guid>
      <dc:creator />
      <dc:date>2015-06-24T09:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: StDev of sum</title>
      <link>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888909#M469690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;stdev&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ValueList&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1,2,3,4)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;but instead of 1,2,3,4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;can be your Variable but you would need iit to be SUM(...),SUM(...) etc&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 09:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888909#M469690</guid>
      <dc:creator>sgrice</dc:creator>
      <dc:date>2015-06-24T09:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: StDev of sum</title>
      <link>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888910#M469691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming vUB works on its own (ie as expression in the chart =$(vUB) ), then you should be able use an Aggr() like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=stdev(Aggr(($(vUB)), dim1, ...&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where dim1, ... is a comma separated list of all the chart/table dimensions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 09:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888910#M469691</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-06-24T09:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: StDev of sum</title>
      <link>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888911#M469692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or if you just wanting STdev of all &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[FLOW TYPE]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;stdev(aggr(sum(&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AMOUNT&lt;/SPAN&gt;), &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[FLOW TYPE]&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 09:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888911#M469692</guid>
      <dc:creator>sgrice</dc:creator>
      <dc:date>2015-06-24T09:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: StDev of sum</title>
      <link>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888912#M469693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Closing in i think! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;However getting different values when calculating in Excel and QV.&lt;/P&gt;&lt;P&gt;Any idea why? Pls see below, and pls see attached example doc.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;IMG alt="Capture1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90577_Capture1.JPG" style="width: 620px; height: 314px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/90587_Capture.JPG" style="width: 620px; height: 564px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 09:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888912#M469693</guid>
      <dc:creator />
      <dc:date>2015-06-24T09:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: StDev of sum</title>
      <link>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888913#M469694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I take it that qlikview is doing&lt;/P&gt;&lt;P&gt;STdev(Aggr(SUM({&amp;lt;TYPE={'A'}&amp;gt;}Amount)+SUM({&amp;lt;TYPE={'B'}&amp;gt;}Amount),Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 10:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888913#M469694</guid>
      <dc:creator>sgrice</dc:creator>
      <dc:date>2015-06-24T10:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: StDev of sum</title>
      <link>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888914#M469695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I beleive you are ríght, question is why it differs from the Excel result? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Mystery of the day&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 10:14:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888914#M469695</guid>
      <dc:creator />
      <dc:date>2015-06-24T10:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: StDev of sum</title>
      <link>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888915#M469696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because you are using STDEV.P in Excel.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I believe the QV stdev() function works like STDEV.S in Excel.&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;For large sample sizes, both Excel functions (STDEV.S and STDEV.P) converge.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You can transform Stdev.S into Stdev.P by calculating 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;Stdev.S * sqrt(N-1) / sqrt(N)&amp;nbsp; = Stdev.P&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;or&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Stdev.S = sqrt(N) /sqrt(N-1) * Stdev.P&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;N being your sample size (count of values).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 10:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888915#M469696</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-24T10:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: StDev of sum</title>
      <link>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888916#M469697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right thank you!&lt;/P&gt;&lt;P&gt;However, my reality looks a bit different so unortunately it did not work in my master document.&lt;/P&gt;&lt;P&gt;One of my formulas looks like the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;='01/01/2011',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[TYPE]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'A'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[TYPE]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'B'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see below result and attached example document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Olle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/90600_Capture1.JPG" style="width: 620px; height: 337px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90599_Capture.JPG" style="width: 620px; height: 307px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 12:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888916#M469697</guid>
      <dc:creator />
      <dc:date>2015-06-24T12:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: StDev of sum</title>
      <link>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888917#M469698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To see why this is happening, disable 'suppress zero values' on presentation tab.&lt;/P&gt;&lt;P&gt;You will see that there are actually a lot more records involved in calculating the stdev, many of them zero, which will lead to the large stdev value in QV.&lt;/P&gt;&lt;P&gt;You get the same number as in Excel by creating a Type list box and selecting 'A' (since all your selected date values should result in a Type 'A' aggregation, right?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Date&amp;lt;='01/01/2011',&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;[TYPE]= {'A'}&amp;gt;}Amount),&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;[TYPE]= {'B'}&amp;gt;}Amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does not filter the dates to only records belonging to Type 'A'. If you want this, I think you need to rework your expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 13:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888917#M469698</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-24T13:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: StDev of sum</title>
      <link>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888918#M469699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a variable vUB definition like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;[TYPE]= {'A'}, Date *= {"&amp;lt;=01/01/2011"} &amp;gt;}Amount) +&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;[TYPE]= {'B'}, Date *= {"&amp;gt;01/01/2011"} &amp;gt;}Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 13:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888918#M469699</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-24T13:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: StDev of sum</title>
      <link>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888919#M469700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice!&lt;/P&gt;&lt;P&gt;One question, what does the * do?&lt;/P&gt;&lt;P&gt;If it was not for the *, then it would give the same result as with the IF-statement or am I misunderstanding? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 14:07:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888919#M469700</guid>
      <dc:creator />
      <dc:date>2015-06-24T14:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: StDev of sum</title>
      <link>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888920#M469701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, the intersection operator * is used here to regard the user selections in Date field, if you remove the * operator (try it!), you will get the full Date range evaluated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can however simplify my above expression by using an additional Union operator:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;[TYPE]= {'A'}, Date *= {"&amp;lt;=01/01/2011"} &amp;gt; + &amp;lt;[TYPE]= {'B'}, Date *= {"&amp;gt;01/01/2011"} &amp;gt;}Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 14:12:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/StDev-of-sum/m-p/888920#M469701</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-24T14:12:09Z</dc:date>
    </item>
  </channel>
</rss>

