<?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 Set analysis expression to calculate the average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410796#M802039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if I could get some help please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to use an expression to calculate the average total sales for the month in qlikview to put in my summary table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The raw data displays multiple sales for each day. So I would need to first sum the sales for each business day and then calculate the average for total sales for each day of that month. I have attached an example of the raw data and the desired result which can be achieved in excel. I would like to identify a simple expression to perform this calculation so that I can add it to my pivot summary table in qlikview.&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;Esther&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Set analysis expression to calculate the average</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410796#M802039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if I could get some help please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to use an expression to calculate the average total sales for the month in qlikview to put in my summary table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The raw data displays multiple sales for each day. So I would need to first sum the sales for each business day and then calculate the average for total sales for each day of that month. I have attached an example of the raw data and the desired result which can be achieved in excel. I would like to identify a simple expression to perform this calculation so that I can add it to my pivot summary table in qlikview.&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;Esther&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410796#M802039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression to calculate the average</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410797#M802040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;I am attempting to use an expression to calculate the average total sales for the month in qlikview to put in my summary table.&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;Avg({&amp;lt;Month = {$(=Max(Month))}&amp;gt;} TOTAL [Sum of Deposits])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OR&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Avg(TOTAL [Sum of Deposits])&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 04:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410797#M802040</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-11-17T04:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression to calculate the average</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410798#M802041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can try like below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(Deposits) / count(total distinct Month)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG __jive_id="183629" alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183629_Capture.JPG" style="height: 217px; width: 620px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 04:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410798#M802041</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-11-17T04:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression to calculate the average</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410799#M802042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attempted your above formula but it returned no results.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="deposits.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183821_deposits.PNG" style="height: 225px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Nov 2017 22:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410799#M802042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-19T22:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression to calculate the average</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410800#M802043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a month field in your dashboard? May be it is called Month or MONTH?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Nov 2017 22:54:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410800#M802043</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-19T22:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression to calculate the average</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410801#M802044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get the result in bold (see screenshot below)in my pivot table but have been unable to get&lt;/P&gt;&lt;P&gt;my &lt;SPAN style="font-size: 13.3333px;"&gt;expression to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Average.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183822_Average.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Nov 2017 23:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410801#M802044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-19T23:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression to calculate the average</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410802#M802045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The result in bold is the average total for the deposits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Nov 2017 23:08:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410802#M802045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-19T23:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression to calculate the average</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410803#M802046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Avg(Aggr(Sum(Deposits), Month, Date))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 00:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410803#M802046</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-20T00:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression to calculate the average</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410804#M802047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 01:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410804#M802047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-20T01:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression to calculate the average</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410805#M802048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula works but I am unable to use it in my pivot summary table. Do you know why this could be? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression that i am using is this if(Plan='Average',Avg(Aggr(Sum(Deposits), Month, Date)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Average.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183955_Average.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 03:30:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410805#M802048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-21T03:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression to calculate the average</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410806#M802049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Avg(Aggr(If(Plan = 'Average', Sum(Deposits)), Month, Date))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 07:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410806#M802049</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-11-21T07:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression to calculate the average</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410807#M802050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest you to use set analysis like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Avg(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;Plan = {'Average'}&amp;gt;}&lt;/SPAN&gt;Aggr(Sum(&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{&amp;lt;Plan = {'Average'}&amp;gt;}&lt;/STRONG&gt;Deposits), Month, Date)))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you might also need to add Plan to the Aggr() function here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Avg(&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{&amp;lt;Plan = {'Average'}&amp;gt;}&lt;/STRONG&gt;Aggr(Sum(&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{&amp;lt;Plan = {'Average'}&amp;gt;}&lt;/STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/STRONG&gt;Deposits), Month, Date, &lt;SPAN style="color: #ff0000;"&gt;Plan&lt;/SPAN&gt;)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 09:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-to-calculate-the-average/m-p/1410807#M802050</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-21T09:45:21Z</dc:date>
    </item>
  </channel>
</rss>

