<?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: calculate total and average in table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/calculate-total-and-average-in-table/m-p/1911366#M75112</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/103918"&gt;@Aspiring_Developer&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Is this what you want:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="calculate total and average in table - Solution.PNG" style="width: 908px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75642i0FC132810076A7FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="calculate total and average in table - Solution.PNG" alt="calculate total and average in table - Solution.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If Yes then you need to use below expressions:&lt;/P&gt;
&lt;P&gt;First, create a single date for every month which will help in aggregation.&lt;/P&gt;
&lt;P&gt;See this:&lt;/P&gt;
&lt;P&gt;MONTHNAME(DATE(DATE#(ISSUE_CLOSE_DATE,'DD-MMM-YYYY'),'DD-MM-YYYY')) AS ISSUE_CLOSE_DATE_MONTHNAME,&lt;/P&gt;
&lt;P&gt;Expressions:&lt;/P&gt;
&lt;P&gt;Sum Total:&lt;BR /&gt;SUM(TOTAL &amp;lt;ISSUE_CLOSE_DATE_MONTHNAME&amp;gt; CLOSED_WKG_DAYS)&lt;/P&gt;
&lt;P&gt;Average:&lt;BR /&gt;SUM(TOTAL &amp;lt;ISSUE_CLOSE_DATE_MONTHNAME&amp;gt; CLOSED_WKG_DAYS)/COUNT(TOTAL &amp;lt;ISSUE_CLOSE_DATE_MONTHNAME&amp;gt; CLOSED_WKG_DAYS)&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Av7eN&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2022 16:10:52 GMT</pubDate>
    <dc:creator>aveeeeeee7en</dc:creator>
    <dc:date>2022-03-29T16:10:52Z</dc:date>
    <item>
      <title>calculate total and average in table</title>
      <link>https://community.qlik.com/t5/App-Development/calculate-total-and-average-in-table/m-p/1911290#M75099</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;I have below table :-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_0-1648563988771.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75630i00B9F450047F3EB0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_0-1648563988771.png" alt="Aspiring_Developer_0-1648563988771.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have the values of closed_wkg_days for multiple months.&lt;/P&gt;
&lt;P&gt;I wish to calculate the sum of all the closed _wkg_days for each month.&lt;/P&gt;
&lt;P&gt;for example for the month of Jan my value should be the total of all the values and&amp;nbsp; then take the average for the same.&lt;/P&gt;
&lt;P&gt;How can I achieve it ?&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 14:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/calculate-total-and-average-in-table/m-p/1911290#M75099</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2022-03-29T14:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: calculate total and average in table</title>
      <link>https://community.qlik.com/t5/App-Development/calculate-total-and-average-in-table/m-p/1911304#M75103</link>
      <description>&lt;P&gt;Your data shows you got LOB dimension also, not sure how that is needed to be used. The below expression sums all the values, month wise and then takes the average of it. You might need to update it based on your need.&lt;/P&gt;
&lt;P&gt;Avg(Aggr(Sum(CLOSED_WKG_DAYS),Month-Year))&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 14:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/calculate-total-and-average-in-table/m-p/1911304#M75103</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-03-29T14:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: calculate total and average in table</title>
      <link>https://community.qlik.com/t5/App-Development/calculate-total-and-average-in-table/m-p/1911366#M75112</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/103918"&gt;@Aspiring_Developer&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Is this what you want:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="calculate total and average in table - Solution.PNG" style="width: 908px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75642i0FC132810076A7FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="calculate total and average in table - Solution.PNG" alt="calculate total and average in table - Solution.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If Yes then you need to use below expressions:&lt;/P&gt;
&lt;P&gt;First, create a single date for every month which will help in aggregation.&lt;/P&gt;
&lt;P&gt;See this:&lt;/P&gt;
&lt;P&gt;MONTHNAME(DATE(DATE#(ISSUE_CLOSE_DATE,'DD-MMM-YYYY'),'DD-MM-YYYY')) AS ISSUE_CLOSE_DATE_MONTHNAME,&lt;/P&gt;
&lt;P&gt;Expressions:&lt;/P&gt;
&lt;P&gt;Sum Total:&lt;BR /&gt;SUM(TOTAL &amp;lt;ISSUE_CLOSE_DATE_MONTHNAME&amp;gt; CLOSED_WKG_DAYS)&lt;/P&gt;
&lt;P&gt;Average:&lt;BR /&gt;SUM(TOTAL &amp;lt;ISSUE_CLOSE_DATE_MONTHNAME&amp;gt; CLOSED_WKG_DAYS)/COUNT(TOTAL &amp;lt;ISSUE_CLOSE_DATE_MONTHNAME&amp;gt; CLOSED_WKG_DAYS)&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Av7eN&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 16:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/calculate-total-and-average-in-table/m-p/1911366#M75112</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2022-03-29T16:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: calculate total and average in table</title>
      <link>https://community.qlik.com/t5/App-Development/calculate-total-and-average-in-table/m-p/1911719#M75154</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/32412"&gt;@aveeeeeee7en&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick response.&lt;/P&gt;
&lt;P&gt;I wish to show single record for each month .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like for Jan 2022 - total is 94 ., so there should be single row for that .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 08:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/calculate-total-and-average-in-table/m-p/1911719#M75154</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2022-03-30T08:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: calculate total and average in table</title>
      <link>https://community.qlik.com/t5/App-Development/calculate-total-and-average-in-table/m-p/1913409#M75288</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/103918"&gt;@Aspiring_Developer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First add this in your Date:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MonthName(Date(Date#(ISSUE_CLOSE_DATE,'DDD-MMM-YYYY'),'MMM-YY')) AS ISSUE_CLOSE_DATE_MONTHNAME&lt;/P&gt;
&lt;P&gt;The above expression will first concert the Date to Number and MonthName will generate one date for several dates available in a month. eg. 5-Jan-2022, 6-Jan-2022, 7-Jan-2022, etc. all will fall under Jan 2022&lt;/P&gt;
&lt;P&gt;Your expected output after using the new field. See this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="New Expected Output.PNG" style="width: 741px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/76005i02799C9981BE2341/image-size/large?v=v2&amp;amp;px=999" role="button" title="New Expected Output.PNG" alt="New Expected Output.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 19:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/calculate-total-and-average-in-table/m-p/1913409#M75288</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2022-04-06T19:29:53Z</dc:date>
    </item>
  </channel>
</rss>

