<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stdev/m-p/395509#M1157567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your reply. If I use stdev(Travels) i still get the 1.29?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Jan 2013 14:31:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-05T14:31:49Z</dc:date>
    <item>
      <title>Stdev</title>
      <link>https://community.qlik.com/t5/QlikView/Stdev/m-p/395507#M1157565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anybody help me with the Stdev function. I can't get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple case with question asked how many travels (0, 1, 2 or 3) a year a family undertakes. 200 families answered:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Travels, Families&lt;/P&gt;&lt;P&gt;0, 50&lt;/P&gt;&lt;P&gt;1, 80&lt;/P&gt;&lt;P&gt;2, 60&lt;/P&gt;&lt;P&gt;3, 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stdev(Aggr(Sum(Travels), Families)) gives me 1.29. It should be approx. 0.85.&lt;/P&gt;&lt;P&gt;Any help?, Zach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 08:30:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stdev/m-p/395507#M1157565</guid>
      <dc:creator />
      <dc:date>2013-01-05T08:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Stdev</title>
      <link>https://community.qlik.com/t5/QlikView/Stdev/m-p/395508#M1157566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But why do you use the Aggr function? This creates a &lt;STRONG&gt;&lt;EM&gt;nested &lt;/EM&gt;&lt;/STRONG&gt;aggregation and you need only a single aggregation. The expression "stdev(Travels)" will give 0.85 as answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 11:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stdev/m-p/395508#M1157566</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-01-05T11:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Stdev</title>
      <link>https://community.qlik.com/t5/QlikView/Stdev/m-p/395509#M1157567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your reply. If I use stdev(Travels) i still get the 1.29?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 14:31:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stdev/m-p/395509#M1157567</guid>
      <dc:creator />
      <dc:date>2013-01-05T14:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Stdev</title>
      <link>https://community.qlik.com/t5/QlikView/Stdev/m-p/395510#M1157568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have the raw data, i.e all 200 records, then stdev will work the way you expect it. But if you calculate it from a table of just four records (the ones in your initial post), then 1.29 &lt;EM&gt;&lt;STRONG&gt;is correct&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can most likely calculate it indirectly from you four records using a formula with weighted values (you need to weight the "travels" number by number of families).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 21:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stdev/m-p/395510#M1157568</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-01-05T21:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Stdev</title>
      <link>https://community.qlik.com/t5/QlikView/Stdev/m-p/395511#M1157569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you load the data using the following script, you will recreate the raw data and the stdev (and average and all other statistical entities) will be calculated correctly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load * while iterno()&amp;lt;= Families;&lt;/P&gt;&lt;P&gt;Load * inline &lt;/P&gt;&lt;P&gt;[Travels, Families&lt;/P&gt;&lt;P&gt;0, 50&lt;/P&gt;&lt;P&gt;1, 80&lt;/P&gt;&lt;P&gt;2, 60&lt;/P&gt;&lt;P&gt;3, 10];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 21:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stdev/m-p/395511#M1157569</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-01-05T21:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Stdev</title>
      <link>https://community.qlik.com/t5/QlikView/Stdev/m-p/395512#M1157570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;Very helpfull. I thought that the Stdev function would 'automatically' expand over the two elements. Good to know that I need all the individual records for Stdev to work the way I want it to. I now understand that the 1.29 simply is the standard deviation of 0, 1, 2 and 3 occuring 1 time each.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 21:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stdev/m-p/395512#M1157570</guid>
      <dc:creator />
      <dc:date>2013-01-05T21:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Stdev</title>
      <link>https://community.qlik.com/t5/QlikView/Stdev/m-p/2487888#M1226196</link>
      <description>&lt;P&gt;Dear HIC,&lt;/P&gt;
&lt;P&gt;your approach means that stdev operates correctly only with raw data.&lt;BR /&gt;In this very case there should be as many rows as count(Families), i.e. = 200.&lt;BR /&gt;What about % numbers? What if my table looks like this:&lt;BR /&gt;[Travels, Families&lt;BR /&gt;0, 25%&lt;BR /&gt;1, 40%&lt;BR /&gt;2, 30%&lt;BR /&gt;3, 5%];&lt;BR /&gt;How many rows my raw table&amp;nbsp;must have?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 07:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stdev/m-p/2487888#M1226196</guid>
      <dc:creator>did</dc:creator>
      <dc:date>2024-10-22T07:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Stdev</title>
      <link>https://community.qlik.com/t5/QlikView/Stdev/m-p/2490132#M1226232</link>
      <description>&lt;DIV&gt;If you want one row per family, and there are 200 families, then you can use this script:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Load&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; RowNo() as FamilyNo,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; *&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Inline&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;[Travels, Families&lt;/DIV&gt;
&lt;DIV&gt;0, 25%&lt;/DIV&gt;
&lt;DIV&gt;1, 40%&lt;/DIV&gt;
&lt;DIV&gt;2, 30%&lt;/DIV&gt;
&lt;DIV&gt;3, 5%]&lt;/DIV&gt;
&lt;DIV&gt;While IterNo() &amp;lt;= 200 * Families;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 31 Oct 2024 12:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stdev/m-p/2490132#M1226232</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2024-10-31T12:24:05Z</dc:date>
    </item>
  </channel>
</rss>

