<?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: Average, Standard deviation, Confidence interval, ... in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315724#M28237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are these the numbers you expect to see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167342_Capture.PNG" style="height: 188px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jun 2017 15:35:03 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-06-19T15:35:03Z</dc:date>
    <item>
      <title>Average, Standard deviation, Confidence interval, ...</title>
      <link>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315723#M28236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to Qlik Sense, and i'm trying to develop an app.&lt;/P&gt;&lt;P&gt;One of my source data file has the same format as the one you will find attached to this message : 4 raws, the first with a category of product, the second with the type of product (can be the same type but not the same category), the third for the sales (whatever the unit is), and the fourth, the date of sale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do seems easy, but I couldn't find how to make it :&lt;/P&gt;&lt;P&gt;I need to calculate and display the average of sales per day, but making first the sub-total for each category. &lt;/P&gt;&lt;P&gt;I explain : for&lt;SPAN style="font-size: 10pt;"&gt; instance, the total of sales for category A and day 01/01/2010 is 50 (15+25+10)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;for category B same day is 60 (30+20+10)&lt;/P&gt;&lt;P&gt;for category C same day 70 (20+20+30)&lt;/P&gt;&lt;P&gt;What I need to do is to calculate the average of sales for categories A B and C per day. For this example and the date 01/01/2010, it would be (50+60+70)/3 = 60. And so on for every days... and drawing the curve.&lt;/P&gt;&lt;P&gt;And the thing I was doing till now was calculating the average for day 01/01/2010 of each individual value (like (15+25+10+30+20+10+20+20+30) / 9 ) ... So not the same result at all ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I do to perform my calculation ? You would help me so much guys ! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once this will be done, I'll have another problem of confidence interval :&lt;/P&gt;&lt;P&gt;I'll need to calculate the standard deviation between the total for categories A B and C per day &lt;EM&gt;(like for day &lt;STRONG&gt;01/01/2010&lt;/STRONG&gt; : standard deviation between 50, 60 and 70, for the date &lt;STRONG&gt;02/01/2010&lt;/STRONG&gt;, standard deviation between [total category A at that day = 40] and [total category B at that date = 30] and [total category C at that date = 50] etc..)&lt;/EM&gt;, in order to display a 90% confidence interval around my average curve (of course my original data are way more complete than this example file, but the way to think is exactly the same).&lt;/P&gt;&lt;P&gt;So if you already have a clue for that as well ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks sooo much, waiting for your help !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 14:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315723#M28236</guid>
      <dc:creator />
      <dc:date>2017-06-19T14:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Average, Standard deviation, Confidence interval, ...</title>
      <link>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315724#M28237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are these the numbers you expect to see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167342_Capture.PNG" style="height: 188px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 15:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315724#M28237</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-19T15:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Average, Standard deviation, Confidence interval, ...</title>
      <link>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315725#M28238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly what I needed ! Thanks so much.&lt;/P&gt;&lt;P&gt;Now I can draw my confidence interval, using the statistics normal distribution law ! like placing my upper and lower lines with the formula :&lt;/P&gt;&lt;P&gt;average + Z (according to Z table) * Stdev / sqrt(total number) (for the max line)&lt;/P&gt;&lt;P&gt;or average - Z (according to Z table) * Stdev / sqrt(total number) (for the min line)&lt;/P&gt;&lt;P&gt;No better solution ? &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, 20 Jun 2017 12:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315725#M28238</guid>
      <dc:creator />
      <dc:date>2017-06-20T12:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Average, Standard deviation, Confidence interval, ...</title>
      <link>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315726#M28239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that is how you will have to do this... can't think of any better way to do this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 14:49:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315726#M28239</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-20T14:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Average, Standard deviation, Confidence interval, ...</title>
      <link>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315727#M28240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I finally could do this, thanks again for your good help !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;An easier way for a 95% interval was just to display &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Avg(Aggr(Sum(Sales), Category, Date))&amp;nbsp; +/-&amp;nbsp; 2 * Stdev(Aggr(Sum(Sales), Category, Date))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I just remembered this 1, 2 or 3 sigmas rule ! ahah&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;So the same if you want a 68% interval, just substitute factor 2 by factor 1, and for a 99% interval, substitute factor 2 by factor 3, and it's done ! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/EM&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;Works perfectly for me !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 14:55:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315727#M28240</guid>
      <dc:creator />
      <dc:date>2017-06-20T14:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Average, Standard deviation, Confidence interval, ...</title>
      <link>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315728#M28241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question related to this previous example, that we solved last week :&lt;/P&gt;&lt;P&gt;The solution allowed us to draw another graph with the average and a confidence interval, that's great.&lt;/P&gt;&lt;P&gt;But what if now, I would like to display this average and interval in the same graph as the one representing the sales on vertical axis, and for dimensions date and category ?&lt;/P&gt;&lt;P&gt;The problem is that, I have two dimensions : Dates and Category, and the formulas Sunny adviced me last week are to be set as measures. However, you can't draw a graph with several dimensions AND several measures. You can just with several dimensions and one measure, or several measures and one dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you advice me guys ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i want to see is the 3 curves of evolution of the sales along the time (one per category), and on the same graph, the average, and the confidence interval as we found last week. In fact, the final aim would be to be able to see when one curve goes out of this interval and is in a "risky" situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your precious help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 12:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315728#M28241</guid>
      <dc:creator />
      <dc:date>2017-06-28T12:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Average, Standard deviation, Confidence interval, ...</title>
      <link>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315729#M28242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample outside of Qlik Sense to show what you are trying to get? May be create a dummy Excel sample where you can show the graph you are looking to get based on the sample data you provided or new sample data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 16:35:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315729#M28242</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-28T16:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Average, Standard deviation, Confidence interval, ...</title>
      <link>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315730#M28243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay in responding !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, i put attached a new excel file simplified : 3 raws, one for the name, one for the date, one for the money they have.&lt;/P&gt;&lt;P&gt;What i want to see is &lt;STRONG&gt;on the same visualization &lt;/STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;1)&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;the evolution of the money for each character along the time (from day -5 till day 0 = today) and &lt;SPAN style="text-decoration: underline;"&gt;2)&lt;/SPAN&gt; the confidence interval of 95% as we did before.&lt;/P&gt;&lt;P&gt;The 1), I did it easily : creating two dimensions Date and Name, and one measure : Sum(Money). As you can see on "Picture_1"&lt;/P&gt;&lt;P&gt;The 2), thanks to what you explained previously, I do it easily on another view, creating one dimension : Date, and two measures :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Avg(Aggr(Sum(Money), Date))&amp;nbsp; +&amp;nbsp; 2 * Stdev(Aggr(Sum(Money), Date))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Avg(Aggr(Sum(Money), Date))&amp;nbsp; -&amp;nbsp; 2 * Stdev(Aggr(Sum(Money), Date))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is now, how could I display this confidence interval on my visualization 1), to be fast able to see which is out of the confidence interval at a D date ? (as drawn on Picture_2, with in red the lower limit and green the upper limit of the 95% interval). In fact, i have already several dimensions (2 in this example), and I need several measures (3 in this example), which is impossible ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for your great help and availability !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Picture 1&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Picture_1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168899_Picture_1.JPG" style="width: 620px; height: 373px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Picture 2&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Picture_2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/168900_Picture_2.JPG" style="width: 620px; height: 370px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 14:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315730#M28243</guid>
      <dc:creator />
      <dc:date>2017-07-03T14:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Average, Standard deviation, Confidence interval, ...</title>
      <link>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315731#M28244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help Sunny ! You can find all that in my message below &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, 04 Jul 2017 14:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315731#M28244</guid>
      <dc:creator />
      <dc:date>2017-07-04T14:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Average, Standard deviation, Confidence interval, ...</title>
      <link>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315732#M28245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Up ! Help pleaaaaase.&lt;/P&gt;&lt;P&gt;Thx so much in advance to those who can help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 14:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/1315732#M28245</guid>
      <dc:creator />
      <dc:date>2017-07-24T14:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Average, Standard deviation, Confidence interval, ...</title>
      <link>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/2053878#M86596</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Can u pls share the qvf for this.&lt;/P&gt;
&lt;P&gt;i have a same doubt but i am not able to solve .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 05:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-Standard-deviation-Confidence-interval/m-p/2053878#M86596</guid>
      <dc:creator>aditya_pratap</dc:creator>
      <dc:date>2023-03-28T05:06:26Z</dc:date>
    </item>
  </channel>
</rss>

