<?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 using more than one variable?! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372404#M138480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried RangeStdev?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jun 2012 10:35:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-28T10:35:05Z</dc:date>
    <item>
      <title>Stdev using more than one variable?!</title>
      <link>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372403#M138479</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;If I want to use the Stdev function over more than one variable like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Stdev&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Factory&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Package System]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SizeCodeID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Variable&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[web 1], [web 2], [web 3]&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I make it to work??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brgs&lt;/P&gt;&lt;P&gt;Marita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 09:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372403#M138479</guid>
      <dc:creator />
      <dc:date>2012-06-28T09:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Stdev using more than one variable?!</title>
      <link>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372404#M138480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried RangeStdev?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 10:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372404#M138480</guid>
      <dc:creator />
      <dc:date>2012-06-28T10:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Stdev using more than one variable?!</title>
      <link>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372405#M138481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m sorry frankcrezee but how do you meen??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;RangeStdev &lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[web 1]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[web 2]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[web 3]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) dosen´t work......&lt;BR /&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 10:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372405#M138481</guid>
      <dc:creator />
      <dc:date>2012-06-28T10:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Stdev using more than one variable?!</title>
      <link>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372406#M138482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to calculate in the script or in the front end?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangeStdev(var1,var2,var3) should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you maybe upload an qvw example file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 11:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372406#M138482</guid>
      <dc:creator />
      <dc:date>2012-06-28T11:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Stdev using more than one variable?!</title>
      <link>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372407#M138483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In an expression for a chart and when I enter the RangeStdev function i dont get any results!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 11:53:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372407#M138483</guid>
      <dc:creator />
      <dc:date>2012-06-28T11:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Stdev using more than one variable?!</title>
      <link>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372408#M138484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now i´ve uploaded the file, it´s the chart at the bottom, Stdev column!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 12:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372408#M138484</guid>
      <dc:creator />
      <dc:date>2012-06-28T12:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Stdev using more than one variable?!</title>
      <link>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372409#M138485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe rangestdev() expects a range of unambiguous values as arguments, no fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's hard to advice you here, because its really easy to mess with statistics &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that your sample values are defined by &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;([web 1]+[middle web]+[last web])/3)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at least that's what you calculate the average from&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Avg(Total&amp;lt;Factory, [Package System], SizeCodeID, Variable, Year, Month&amp;gt;([web 1]+[middle web]+[last web])/3)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you don't need to use the total with fields in this case, since you are stating all your dimensions, so maybe &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Avg( ([web 1]+[middle web]+[last web])/3)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is enough (it's reproducing the same results in your sample file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the standard deviation of your sample values should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;stdev( ([web 1]+[middle web]+[last web])/3 )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 12:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372409#M138485</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-28T12:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Stdev using more than one variable?!</title>
      <link>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372410#M138486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thank you Stefan for you reply. However this is the solution i hade from the beginning when i realized that the numbers i get were wrong. The reason for this is because I add all webs together and then do the Stdev function, this is not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to bunch all webs together into one variable and then take Stdev on that variable or I need to take Stdev on several varaibles without adding them together first :-).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes seans to someone, because i´m lost!?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 13:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372410#M138486</guid>
      <dc:creator />
      <dc:date>2012-06-28T13:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Stdev using more than one variable?!</title>
      <link>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372411#M138487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what I was talking about when I said, it's easy to mess around with statistics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, before you try to calculate the stdev of different samples, what about creating one variable / sample from your three?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TotalSample:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ResultInformationID, [web 1] as TotalSample resident tbl_Result;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ResultInformationID, [middle web] as TotalSample resident tbl_Result;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ResultInformationID, [last web] as TotalSample resident tbl_Result;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then just use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;avg(TotalSample)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resp. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;stdev(TotalSample)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is assuming that your three samples can be combined into one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 13:17:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stdev-using-more-than-one-variable/m-p/372411#M138487</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-28T13:17:56Z</dc:date>
    </item>
  </channel>
</rss>

