<?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 Problem with counting the avarage in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-counting-the-avarage/m-p/946324#M325936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 contracts : 7000000012 and 7000088270&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These contracts are within different periods with some revenue connected with them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;7000000012 - 15-01 till 15-09 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;7000088270 - 15-01 till 15-04 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was counting the average using analysis and divisor like this for one contract :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(distinct([Rok-Miesiąc]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the first one result will be 9, for the second will be 4. &lt;/P&gt;&lt;P&gt;So for &lt;SPAN style="font-size: 13.3333px;"&gt;7000000012 whole revenue will be divided by 9 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;and for contract &lt;SPAN style="font-size: 13.3333px;"&gt;7000088270&amp;nbsp; will be divided by 4. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what if I choose 2 contratcs at the same time ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be problem because my divisor will be 9 (because we have 9 rows for contracts) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contract &lt;SPAN style="font-size: 13.3333px;"&gt;7000000012 should be still divided by 9 but contract &lt;SPAN style="font-size: 13.3333px;"&gt;7000088270 should be divided by 4 because this contract &lt;BR /&gt;is not null only for months &lt;SPAN style="font-size: 13.3333px;"&gt;15-01 till 15-04.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you have any solution for this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/104038_Error.jpg" style="height: 255px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help,&lt;/P&gt;&lt;P&gt;Jacek Antek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Nov 2015 14:42:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-05T14:42:04Z</dc:date>
    <item>
      <title>Problem with counting the avarage</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-counting-the-avarage/m-p/946324#M325936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 contracts : 7000000012 and 7000088270&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These contracts are within different periods with some revenue connected with them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;7000000012 - 15-01 till 15-09 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;7000088270 - 15-01 till 15-04 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was counting the average using analysis and divisor like this for one contract :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(distinct([Rok-Miesiąc]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the first one result will be 9, for the second will be 4. &lt;/P&gt;&lt;P&gt;So for &lt;SPAN style="font-size: 13.3333px;"&gt;7000000012 whole revenue will be divided by 9 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;and for contract &lt;SPAN style="font-size: 13.3333px;"&gt;7000088270&amp;nbsp; will be divided by 4. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what if I choose 2 contratcs at the same time ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be problem because my divisor will be 9 (because we have 9 rows for contracts) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contract &lt;SPAN style="font-size: 13.3333px;"&gt;7000000012 should be still divided by 9 but contract &lt;SPAN style="font-size: 13.3333px;"&gt;7000088270 should be divided by 4 because this contract &lt;BR /&gt;is not null only for months &lt;SPAN style="font-size: 13.3333px;"&gt;15-01 till 15-04.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you have any solution for this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/104038_Error.jpg" style="height: 255px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help,&lt;/P&gt;&lt;P&gt;Jacek Antek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 14:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-counting-the-avarage/m-p/946324#M325936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-05T14:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with counting the avarage</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-counting-the-avarage/m-p/946325#M325937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this is what you are looking for:&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;=Count(DISTINCT TOTAL &amp;lt;ContractFieldName&amp;gt; [Rok-Miesiąc])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 15:29:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-counting-the-avarage/m-p/946325#M325937</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-05T15:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with counting the avarage</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-counting-the-avarage/m-p/946326#M325938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to aggr by contract ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 16:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-counting-the-avarage/m-p/946326#M325938</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-11-05T16:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with counting the avarage</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-counting-the-avarage/m-p/946327#M325939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your answers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that instead of contracts there could be more fields like contracts (with null), for example&lt;/P&gt;&lt;P&gt;Business units, companys, controlling objects etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the answer would not be that easy...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be something counting not nulls under condition &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;[Rok-Miesiąc].&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Jacek Antek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 14:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-counting-the-avarage/m-p/946327#M325939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-06T14:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with counting the avarage</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-counting-the-avarage/m-p/946328#M325940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;Count(distinct([Rok-Miesiąc], not null())) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question is how to do condition not null in set analysis? &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;thank you for your answers,&lt;/P&gt;&lt;P&gt;Jacek Antek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 09:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-counting-the-avarage/m-p/946328#M325940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-09T09:38:11Z</dc:date>
    </item>
  </channel>
</rss>

