<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/STD/m-p/552155#M1142423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey mate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't use the &lt;EM&gt;SUM &lt;/EM&gt;and your expression will work fine. The function has as per the help file, the same limitations with regards to nested aggregation as that of the &lt;EM&gt;AVG &lt;/EM&gt;function. For this reason, your expression cannot contain a sum within a Standard deviation. It also makes sense since the standard deviation applied is a sample one, meaning that the sample is divided by n - 1. If you divide by a sum, your sample is 1 - 1, which returns 0, and dividing by 0 is obviously undefined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The standard deviation function even if you have date as a dimension will return the deviation across the data set unless a 'set' of dates is selected. No selections assume full data model and will not populate for each date as each date would be the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have in your data model the following fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Date&lt;/LI&gt;&lt;LI&gt;Week&lt;/LI&gt;&lt;LI&gt;A&lt;/LI&gt;&lt;LI&gt;B&lt;/LI&gt;&lt;LI&gt;C&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and wanted to apply standard deviation to a date or week. Week will populate when added as a dimension as it is not the lowest level and has 7 assumed days within it to calculate variance. If you wanted to say calculate the standard deviation of all weeks, change your expression total mode to 'Std dev of Rows'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the above answers your concerns around the use of this function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Sep 2013 09:45:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-23T09:45:25Z</dc:date>
    <item>
      <title>STD</title>
      <link>https://community.qlik.com/t5/QlikView/STD/m-p/552149#M1142417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm trying to use the stdev() func on a straight table, my formula is :&lt;/P&gt;&lt;P&gt;stdev((sum(a)+sum(b))/sum(c))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but its not working &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; .....&lt;/P&gt;&lt;P&gt;any ideas ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Sep 2013 09:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STD/m-p/552149#M1142417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-22T09:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: STD</title>
      <link>https://community.qlik.com/t5/QlikView/STD/m-p/552150#M1142418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Qlikview Help :&lt;/P&gt;&lt;P&gt;Stdev : Returns the aggregated standard deviation of expression or field iterated over the chart dimension(s).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression must not contain aggregation functions&lt;/STRONG&gt;, &lt;STRONG&gt;unless these inner aggregations contain the &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; qualifier.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you have Sum() inside your expression, which I think is the reason its not working.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 06:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STD/m-p/552150#M1142418</guid>
      <dc:creator />
      <dc:date>2013-09-23T06:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: STD</title>
      <link>https://community.qlik.com/t5/QlikView/STD/m-p/552151#M1142419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not working due to aggregation function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Expression&lt;/SPAN&gt; must not contain aggregation functions, unless these inner aggregations contain the &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; qualifier. For more advanced nested aggregations, please use the &lt;A class="xref_1" style="font-weight: bold;"&gt;&lt;EM&gt;Advanced Aggregation&lt;/EM&gt;&lt;/A&gt; function in combination with calculated dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 06:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STD/m-p/552151#M1142419</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-09-23T06:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: STD</title>
      <link>https://community.qlik.com/t5/QlikView/STD/m-p/552152#M1142420</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;Stdev() function assumes aggregation while your expression ((sum(a)+sum(b))/sum(c)) is agreagted already.&lt;/P&gt;&lt;P&gt;Actually it works but can't calculate stdev using one value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 07:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STD/m-p/552152#M1142420</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2013-09-23T07:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: STD</title>
      <link>https://community.qlik.com/t5/QlikView/STD/m-p/552153#M1142421</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;You can't nest a sum inside a stdev statement in QV. To nest aggregation fuinctions like sum and stdev, you need to use an aggr expression. But even with an aggr expression, this statement will not work as the inner expression returns a single value, bur stdev needs a list of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps what you need is just:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stdev((a + 1)/c)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is not what you need, you need to provide more information about what you are trying to do, and if possible, a sample of yout model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 07:53:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STD/m-p/552153#M1142421</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-09-23T07:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: STD</title>
      <link>https://community.qlik.com/t5/QlikView/STD/m-p/552154#M1142422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you need the sum's.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Try;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;stdev(((a)+b))/(c))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 08:22:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STD/m-p/552154#M1142422</guid>
      <dc:creator />
      <dc:date>2013-09-23T08:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: STD</title>
      <link>https://community.qlik.com/t5/QlikView/STD/m-p/552155#M1142423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey mate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't use the &lt;EM&gt;SUM &lt;/EM&gt;and your expression will work fine. The function has as per the help file, the same limitations with regards to nested aggregation as that of the &lt;EM&gt;AVG &lt;/EM&gt;function. For this reason, your expression cannot contain a sum within a Standard deviation. It also makes sense since the standard deviation applied is a sample one, meaning that the sample is divided by n - 1. If you divide by a sum, your sample is 1 - 1, which returns 0, and dividing by 0 is obviously undefined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The standard deviation function even if you have date as a dimension will return the deviation across the data set unless a 'set' of dates is selected. No selections assume full data model and will not populate for each date as each date would be the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have in your data model the following fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Date&lt;/LI&gt;&lt;LI&gt;Week&lt;/LI&gt;&lt;LI&gt;A&lt;/LI&gt;&lt;LI&gt;B&lt;/LI&gt;&lt;LI&gt;C&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and wanted to apply standard deviation to a date or week. Week will populate when added as a dimension as it is not the lowest level and has 7 assumed days within it to calculate variance. If you wanted to say calculate the standard deviation of all weeks, change your expression total mode to 'Std dev of Rows'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the above answers your concerns around the use of this function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 09:45:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STD/m-p/552155#M1142423</guid>
      <dc:creator />
      <dc:date>2013-09-23T09:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re: STD</title>
      <link>https://community.qlik.com/t5/QlikView/STD/m-p/552156#M1142424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've attached a model for you to have a look at with some examples&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 09:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STD/m-p/552156#M1142424</guid>
      <dc:creator />
      <dc:date>2013-09-23T09:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: STD</title>
      <link>https://community.qlik.com/t5/QlikView/STD/m-p/552157#M1142425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u resend the model i cant see it &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 06:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STD/m-p/552157#M1142425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-24T06:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: STD</title>
      <link>https://community.qlik.com/t5/QlikView/STD/m-p/552158#M1142426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me know if you can open this one. I am assuming you have a license and not using personal edition &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 06:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STD/m-p/552158#M1142426</guid>
      <dc:creator />
      <dc:date>2013-09-24T06:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: STD</title>
      <link>https://community.qlik.com/t5/QlikView/STD/m-p/552159#M1142427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 18:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STD/m-p/552159#M1142427</guid>
      <dc:creator>sohailansari201</dc:creator>
      <dc:date>2015-06-26T18:03:02Z</dc:date>
    </item>
  </channel>
</rss>

