<?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 Sum, interval match, and aggr? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-interval-match-and-aggr/m-p/428634#M491073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got few issues to find a way to calulate this (it may look simple to many of you....&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here it is : &lt;/P&gt;&lt;P&gt;I got the data (pics datasample) , so I want to sum (Nb_Jour _ABS) , but as you can see the data is multiplied by the number of days beetween 'DATE_DEBUT' and 'DATE_FIN_ABS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried in the script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;if previous(DATE_DEBUT) = DATE_DEBUT and previous(DATE_FIN_ABS)=DATE_FIN_ABS and MATRICULE_A = previous (MATRICULE_A), sum()....) as xxxx&lt;/P&gt;&lt;P&gt;this, doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried :also: aggr(distinct sum(NB_JOUR_ABS), MATRICULE_AGENT, DATE_DEBUT, DATE_FIN_ABS) doesn't work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp; : sum(NB_JOUR_ABS) / count(DATE_ABSENCE)...doesn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to put the results in a jauge, and a chart which dimension is 'month' from another table which is a calendar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ISo, I really need a help to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish you the best ,&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Sep 2012 08:39:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-21T08:39:46Z</dc:date>
    <item>
      <title>Sum, interval match, and aggr?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-interval-match-and-aggr/m-p/428634#M491073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got few issues to find a way to calulate this (it may look simple to many of you....&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here it is : &lt;/P&gt;&lt;P&gt;I got the data (pics datasample) , so I want to sum (Nb_Jour _ABS) , but as you can see the data is multiplied by the number of days beetween 'DATE_DEBUT' and 'DATE_FIN_ABS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried in the script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;if previous(DATE_DEBUT) = DATE_DEBUT and previous(DATE_FIN_ABS)=DATE_FIN_ABS and MATRICULE_A = previous (MATRICULE_A), sum()....) as xxxx&lt;/P&gt;&lt;P&gt;this, doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried :also: aggr(distinct sum(NB_JOUR_ABS), MATRICULE_AGENT, DATE_DEBUT, DATE_FIN_ABS) doesn't work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp; : sum(NB_JOUR_ABS) / count(DATE_ABSENCE)...doesn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to put the results in a jauge, and a chart which dimension is 'month' from another table which is a calendar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ISo, I really need a help to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish you the best ,&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 08:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-interval-match-and-aggr/m-p/428634#M491073</guid>
      <dc:creator />
      <dc:date>2012-09-21T08:39:46Z</dc:date>
    </item>
  </channel>
</rss>

