<?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 AW:Problem getting the right Formula (total / aggr / set analysis) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-getting-the-right-Formula-total-aggr-set-analysis/m-p/199389#M58339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I think it is impossible... Think there have to be sort of a vbs-macro or just something based in source-excel-file &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jun 2010 09:19:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-24T09:19:16Z</dc:date>
    <item>
      <title>Problem getting the right Formula (total / aggr / set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-getting-the-right-Formula-total-aggr-set-analysis/m-p/199388#M58338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;the is something I can't get through. A have to get Table similay to this one:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1833_sourceID:1833" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how. I tried for 2 days I think... used total, set analysis and aggr, but I never get to my point. My example Excel-Sheet is not my source but my table I wan't to have in qlikview. In detail my Straight-Table is build like this:&lt;/P&gt;&lt;P&gt;ID | DATE_IN | SUPPLIER | MATERIAL | AMOUNT_IN | PRICE_IN | DATE_OUT | CUSTOMER | AMOUNT_OUT | PRICE_OUT | W&amp;amp;L&lt;/P&gt;&lt;P&gt;Now, for PRICE_IN I need that AVG over the last 60 days PRICE_IN from source. For every dataset. Let's try an example. So PRICE_IN should not actualy by the PRICE IN set from source but should be calculated over 60 days.&lt;/P&gt;&lt;P&gt;DATE_OUT = 24.01.2010 WATER --&amp;gt; AVG should build between DATE_IN 22.01.2010 AND 22.01.2010 -60&lt;BR /&gt;DATE_OUT = 16.01.2010 WOOD --&amp;gt; AVG should build between DATE_IN 10.01.2010 AND 10.01.2010 -60&lt;/P&gt;&lt;P&gt;I could post 1000 of tries I did, if I didn't give up yesterday and came back to using PRICE_IN from source. For example how I break my head here one nice try...&lt;/P&gt;&lt;P&gt;=AVG(total &amp;lt;MATERIAL&amp;gt; IF(ISTEXT(MATERIAL),&lt;BR /&gt; IF(DATE_IN &amp;lt;= DATE_OUT,&lt;BR /&gt; IF((DATE_IN &amp;gt;= date(max({1} total aggr(date(max(IF(ISTEXT(MATERIAL),IF(DATE_IN &amp;lt;= DATE_OUT, DATE_IN-60)))),MATERIAL))),&lt;BR /&gt; PRICE_IN)))))&lt;/P&gt;&lt;P&gt;This one realy is horrible. Just one of really horrible tries...&lt;/P&gt;&lt;P&gt;Hope someone can understand and help.&lt;/P&gt;&lt;P&gt;Greets,&lt;BR /&gt;Jonas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 14:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-getting-the-right-Formula-total-aggr-set-analysis/m-p/199388#M58338</guid>
      <dc:creator />
      <dc:date>2010-06-23T14:59:45Z</dc:date>
    </item>
    <item>
      <title>AW:Problem getting the right Formula (total / aggr / set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-getting-the-right-Formula-total-aggr-set-analysis/m-p/199389#M58339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I think it is impossible... Think there have to be sort of a vbs-macro or just something based in source-excel-file &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 09:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-getting-the-right-Formula-total-aggr-set-analysis/m-p/199389#M58339</guid>
      <dc:creator />
      <dc:date>2010-06-24T09:19:16Z</dc:date>
    </item>
  </channel>
</rss>

