<?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 stdev function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/stdev-function/m-p/233778#M85306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to use the stdev function for a number of sells between two dates aggregating them by country and it doesn't work as I expected:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STDEV({&amp;lt;TIMESTAMP={"&amp;gt;=$(=date(only(TIMESTAMP)-30)) &amp;lt;$(=only(TIMESTAMP))"}&amp;gt;}AGGR(COUNT({&amp;lt;TIMESTAMP={"&amp;gt;=$(=date(only(TIMESTAMP)-30)) &amp;lt;$(=only(TIMESTAMP))"}&amp;gt;}DISTINCT SELL_ID),COUNTRY_ID))/30&lt;/P&gt;&lt;P&gt;I've tryed to calculate the average using the same expression and it works properly:&lt;/P&gt;&lt;P&gt;AVG({&amp;lt;TIMESTAMP={"&amp;gt;=$(=date(only(TIMESTAMP)-30)) &amp;lt;$(=only(TIMESTAMP))"}&amp;gt;}AGGR(COUNT({&amp;lt;TIMESTAMP={"&amp;gt;=$(=date(only(TIMESTAMP)-30)) &amp;lt;$(=only(TIMESTAMP))"}&amp;gt;}DISTINCT SELL_ID),COUNTRY_ID))/30&lt;/P&gt;&lt;P&gt;anyone have an idea of what i'm doing wrong?&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Dec 2010 10:27:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-28T10:27:33Z</dc:date>
    <item>
      <title>stdev function</title>
      <link>https://community.qlik.com/t5/QlikView/stdev-function/m-p/233778#M85306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to use the stdev function for a number of sells between two dates aggregating them by country and it doesn't work as I expected:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STDEV({&amp;lt;TIMESTAMP={"&amp;gt;=$(=date(only(TIMESTAMP)-30)) &amp;lt;$(=only(TIMESTAMP))"}&amp;gt;}AGGR(COUNT({&amp;lt;TIMESTAMP={"&amp;gt;=$(=date(only(TIMESTAMP)-30)) &amp;lt;$(=only(TIMESTAMP))"}&amp;gt;}DISTINCT SELL_ID),COUNTRY_ID))/30&lt;/P&gt;&lt;P&gt;I've tryed to calculate the average using the same expression and it works properly:&lt;/P&gt;&lt;P&gt;AVG({&amp;lt;TIMESTAMP={"&amp;gt;=$(=date(only(TIMESTAMP)-30)) &amp;lt;$(=only(TIMESTAMP))"}&amp;gt;}AGGR(COUNT({&amp;lt;TIMESTAMP={"&amp;gt;=$(=date(only(TIMESTAMP)-30)) &amp;lt;$(=only(TIMESTAMP))"}&amp;gt;}DISTINCT SELL_ID),COUNTRY_ID))/30&lt;/P&gt;&lt;P&gt;anyone have an idea of what i'm doing wrong?&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 10:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/stdev-function/m-p/233778#M85306</guid>
      <dc:creator />
      <dc:date>2010-12-28T10:27:33Z</dc:date>
    </item>
    <item>
      <title>stdev function</title>
      <link>https://community.qlik.com/t5/QlikView/stdev-function/m-p/233779#M85307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know what i'm doing wrong but I don't know how to solve it,&lt;/P&gt;&lt;P&gt;the function for the average that I'm using now is:&lt;/P&gt;&lt;P&gt;AVG({&amp;lt;TIMESTAMP={"&amp;gt;=$(=date(only(TIMESTAMP)-30)) &amp;lt;$(=only(TIMESTAMP))"}&amp;gt;}AGGR(COUNT({&amp;lt;TIMESTAMP={"&amp;gt;=$(=date(only(TIMESTAMP)-30)) &amp;lt;$(=only(TIMESTAMP))"}&amp;gt;}DISTINCT SELL_ID),COUNTRY_ID,TIMESTAMP))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I have a problem, it I doesn't count the null values and i need them,&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 16:47:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/stdev-function/m-p/233779#M85307</guid>
      <dc:creator />
      <dc:date>2010-12-28T16:47:49Z</dc:date>
    </item>
    <item>
      <title>stdev function</title>
      <link>https://community.qlik.com/t5/QlikView/stdev-function/m-p/233780#M85308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want to count null values AS? Zero? I'd replace them with zeros during the load, then. Basically, there's no such thing as the average of 10 and null, any more than there's an average of 10 and Sugar. Null is null, not zero. If you want zero, use zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 02:04:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/stdev-function/m-p/233780#M85308</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-12-29T02:04:51Z</dc:date>
    </item>
  </channel>
</rss>

