<?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 calculation with &amp;quot;Zero&amp;quot; valued months in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Average-calculation-with-quot-Zero-quot-valued-months/m-p/2079565#M88564</link>
    <description>&lt;P&gt;the answer will depend on more detail that you can give.&amp;nbsp; assumptions can be made, since you wanted the average with 0 sales - this means there has to be a row for the month where sales=0.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you specify an expression avg(x), 0 values will be included automatically - Average 1; if you dont want the 0 values included add set analysis to exclude them avg({&amp;lt;x={"&amp;lt;&amp;gt;0"}&amp;gt;}x) here is a sample:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_0-1685735824493.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/109030i5B9D88B5778E1E7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_0-1685735824493.png" alt="edwin_0-1685735824493.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2023 19:57:17 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2023-06-02T19:57:17Z</dc:date>
    <item>
      <title>Average calculation with "Zero" valued months</title>
      <link>https://community.qlik.com/t5/App-Development/Average-calculation-with-quot-Zero-quot-valued-months/m-p/2077651#M88396</link>
      <description>&lt;P&gt;Dear Friends,&lt;/P&gt;
&lt;P&gt;I have a table about product sales. (StockCode, SalesDate, SalesAmount)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Sales" style="width: 427px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/108602iB3631364AA87CE72/image-size/large?v=v2&amp;amp;px=999" role="button" title="sales.PNG" alt="Sales" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Sales&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I want to get this table :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Average Chart" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/108601iE9A98ED0F965FD80/image-size/large?v=v2&amp;amp;px=999" role="button" title="average.PNG" alt="Average Chart" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Average Chart&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Average-1 : Divided By Count(MonthName)&lt;/P&gt;
&lt;P&gt;Average-2 : Divided By Count(&lt;STRONG&gt;Has Value&lt;/STRONG&gt; MonthName)&lt;/P&gt;
&lt;P&gt;Could you help me please..&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 09:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-calculation-with-quot-Zero-quot-valued-months/m-p/2077651#M88396</guid>
      <dc:creator>JulesVerne</dc:creator>
      <dc:date>2023-05-30T09:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Average calculation with "Zero" valued months</title>
      <link>https://community.qlik.com/t5/App-Development/Average-calculation-with-quot-Zero-quot-valued-months/m-p/2079565#M88564</link>
      <description>&lt;P&gt;the answer will depend on more detail that you can give.&amp;nbsp; assumptions can be made, since you wanted the average with 0 sales - this means there has to be a row for the month where sales=0.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you specify an expression avg(x), 0 values will be included automatically - Average 1; if you dont want the 0 values included add set analysis to exclude them avg({&amp;lt;x={"&amp;lt;&amp;gt;0"}&amp;gt;}x) here is a sample:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_0-1685735824493.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/109030i5B9D88B5778E1E7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_0-1685735824493.png" alt="edwin_0-1685735824493.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 19:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-calculation-with-quot-Zero-quot-valued-months/m-p/2079565#M88564</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2023-06-02T19:57:17Z</dc:date>
    </item>
  </channel>
</rss>

