<?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: Using AGGR to calculate Like for like (LFL) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-AGGR-to-calculate-Like-for-like-LFL/m-p/478192#M178611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried to implement the solution in the client dashboard, however as you mentioned a selection changes the numbers. Expecially with average calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've come up with a solution for this problem.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a field Location_Week in the facttable&lt;/LI&gt;&lt;LI&gt;Created a variable which used the likeforlike formula to represent all valid location_week combinations in a Set Analysis string format&lt;/LI&gt;&lt;LI&gt;Then use this variable in the SA of the formula like SUM({&amp;lt;Year={2013}, $(vValidLocationWeek)&amp;gt;} Sales)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached Solution.qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jun 2013 15:14:38 GMT</pubDate>
    <dc:creator>p_verkooijen</dc:creator>
    <dc:date>2013-06-18T15:14:38Z</dc:date>
    <item>
      <title>Using AGGR to calculate Like for like (LFL)</title>
      <link>https://community.qlik.com/t5/QlikView/Using-AGGR-to-calculate-Like-for-like-LFL/m-p/478190#M178609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="42786" alt="Untitled.png" class="jive-image-thumbnail jive-image" height="306" src="https://community.qlik.com/legacyfs/online/42786_Untitled.png" width="805" /&gt;&lt;/P&gt;&lt;P&gt;I'm using AGGR conditions to determine if Sales Y vs LY is valid.&lt;/P&gt;&lt;P&gt;MAX diff in sales Y vs LY is 0,75 per Location/Week. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only want to use the valid weeks for the locations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've managed to make AGGR for a Top level, but when a make a chart with a Category dimension the numbers are not what they should be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG __jive_id="42788" alt="Untitled2.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/42788_Untitled2.png" /&gt;&lt;/P&gt;&lt;P&gt;This should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG alt="Knipsel.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/42794_Knipsel.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attachment for example QVW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 13:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-AGGR-to-calculate-Like-for-like-LFL/m-p/478190#M178609</guid>
      <dc:creator>p_verkooijen</dc:creator>
      <dc:date>2013-06-17T13:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGGR to calculate Like for like (LFL)</title>
      <link>https://community.qlik.com/t5/QlikView/Using-AGGR-to-calculate-Like-for-like-LFL/m-p/478191#M178610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw. I'm not sure your calculations are correct. But that's for you to figure out. If you select a BenchmarkCategory the numbers change quite a bit. Compare the tables to the left and right of the listbox if when you select BenchmarkCategory values. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 17:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-AGGR-to-calculate-Like-for-like-LFL/m-p/478191#M178610</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-17T17:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGGR to calculate Like for like (LFL)</title>
      <link>https://community.qlik.com/t5/QlikView/Using-AGGR-to-calculate-Like-for-like-LFL/m-p/478192#M178611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried to implement the solution in the client dashboard, however as you mentioned a selection changes the numbers. Expecially with average calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've come up with a solution for this problem.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a field Location_Week in the facttable&lt;/LI&gt;&lt;LI&gt;Created a variable which used the likeforlike formula to represent all valid location_week combinations in a Set Analysis string format&lt;/LI&gt;&lt;LI&gt;Then use this variable in the SA of the formula like SUM({&amp;lt;Year={2013}, $(vValidLocationWeek)&amp;gt;} Sales)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached Solution.qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 15:14:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-AGGR-to-calculate-Like-for-like-LFL/m-p/478192#M178611</guid>
      <dc:creator>p_verkooijen</dc:creator>
      <dc:date>2013-06-18T15:14:38Z</dc:date>
    </item>
  </channel>
</rss>

