<?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: avg(aggr(sum(... issue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101332#M6743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm I am thinking where can be this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if i made aggr by DATE how is possible for null values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2018 13:25:34 GMT</pubDate>
    <dc:creator>jasmina_karcic</dc:creator>
    <dc:date>2018-07-02T13:25:34Z</dc:date>
    <item>
      <title>avg(aggr(sum(... issue</title>
      <link>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101330#M6741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="STANJA_CORP.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206722_STANJA_CORP.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I need to calculate average value (or mean) for these values in table, column 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I make one measure:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-size: 8pt;"&gt;AVG(AGGR(FABS(SUM({$&amp;lt;DATUM={"&amp;lt;=31.5.2018","&amp;gt;=1.5.2018"}, IZVESTAJ={"MIS_COR"}, KLAS_KLIJENTA-={"1","2"}, BROJ_REDA={"1"}&amp;gt;}STANJE_KM/(1000))),DATUM)) &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I should get value: 262 141&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But I am getting this value:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="AVG.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/206726_AVG.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Any help, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jasmina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 12:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101330#M6741</guid>
      <dc:creator>jasmina_karcic</dc:creator>
      <dc:date>2018-07-02T12:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: avg(aggr(sum(... issue</title>
      <link>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101331#M6742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have any 0 values that shouldn't be taken into consideration for the average calculations?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 13:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101331#M6742</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-07-02T13:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: avg(aggr(sum(... issue</title>
      <link>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101332#M6743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm I am thinking where can be this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if i made aggr by DATE how is possible for null values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 13:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101332#M6743</guid>
      <dc:creator>jasmina_karcic</dc:creator>
      <dc:date>2018-07-02T13:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: avg(aggr(sum(... issue</title>
      <link>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101333#M6744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Null values are not the same as 0 (zero) values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null value is a non-existing value or a placeholder for that and will not be taken into consideration for an average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A 0 values willl be counted as a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also have negative values in you underlying data - if what you are showing is multiple KMs per date...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to be sure that you only count and handle valid KMs then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt;KM={"&amp;gt;0"}&amp;gt;} KM)&amp;nbsp; and see if the table give the same numbers and total sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Likewise you can add this condition to your average calculation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-size: 8pt; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;AVG(AGGR(FABS(SUM({$&amp;lt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-size: 8pt; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;STANJE_KM={"&amp;gt;0"}&lt;/SPAN&gt;,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;DATUM={"&amp;lt;=31.5.2018","&amp;gt;=1.5.2018"}, IZVESTAJ={"MIS_COR"}, KLAS_KLIJENTA-={"1","2"}, BROJ_REDA={"1"}&amp;gt;}STANJE_KM/(1000))),DATUM))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 13:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101333#M6744</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-07-02T13:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: avg(aggr(sum(... issue</title>
      <link>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101334#M6745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;doesn't work...gets result 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 13:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101334#M6745</guid>
      <dc:creator>jasmina_karcic</dc:creator>
      <dc:date>2018-07-02T13:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: avg(aggr(sum(... issue</title>
      <link>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101335#M6746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I put script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;AVG(AGGR(FABS(SUM({$&amp;lt;STANJE_KM={"&amp;gt;0"},DATUM={"&amp;lt;=31.5.2018","&amp;gt;=1.5.2018"}, IZVESTAJ={"MIS_COR"}, KLAS_KLIJENTA-={"1","2"}, BROJ_REDA={"1"}&amp;gt;}STANJE_KM/(1000))),&lt;EM&gt;distinct DATUM&lt;/EM&gt;))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I get 255 306....&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But this still is not average value &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 14:04:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101335#M6746</guid>
      <dc:creator>jasmina_karcic</dc:creator>
      <dc:date>2018-07-02T14:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: avg(aggr(sum(... issue</title>
      <link>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101336#M6747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something in DATE is not okay. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i put range from 1.1.2018 to 30.4.2018&lt;/P&gt;&lt;P&gt;or from 1.1.2018. to 31.5.2018&lt;/P&gt;&lt;P&gt;or other...not important, it gives the same result....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 14:29:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101336#M6747</guid>
      <dc:creator>jasmina_karcic</dc:creator>
      <dc:date>2018-07-02T14:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: avg(aggr(sum(... issue</title>
      <link>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101337#M6748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I write &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;FABS(SUM({$&amp;lt;DATUM={"&amp;lt;=31.5.2018","&amp;gt;=1.5.2018"}, IZVESTAJ={"MIS_COR"}, KLAS_KLIJENTA-={"1","2"}, BROJ_REDA={"1"}&amp;gt;}STANJE_KM/(1000)))/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;count(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;DATUM={"&amp;lt;=31.5.2018","&amp;gt;=1.5.2018"}, IZVESTAJ={"MIS_COR"}, KLAS_KLIJENTA-={"1","2"}, BROJ_REDA={"1"}&amp;gt;}distinct DATUM) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;it works....:/ &lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 07:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101337#M6748</guid>
      <dc:creator>jasmina_karcic</dc:creator>
      <dc:date>2018-07-03T07:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: avg(aggr(sum(... issue</title>
      <link>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101338#M6749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this might be a good read on this topic&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3208"&gt;Average – Which average?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 23:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/avg-aggr-sum-issue/m-p/101338#M6749</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-04T23:16:57Z</dc:date>
    </item>
  </channel>
</rss>

