<?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: Like for Like Sales Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Like-for-Like-Sales-Calculation/m-p/452195#M1163689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN-US;"&gt;I would create a like for-like-dimension table for each combination of store and date with a flag weather this combination is Like-for-like acceptable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN-US;"&gt;I would also create a calendar dimension table with a corresponding like for like date for each date in the calendar.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN-US;"&gt;Then you should then be able with some set analysis to make your calculation on all measures in your fact table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Henrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Oct 2012 14:15:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-10-27T14:15:49Z</dc:date>
    <item>
      <title>Like for Like Sales Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Like-for-Like-Sales-Calculation/m-p/452192#M1163686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached there is a qlikview file gathering data from Excel file for Sales per Store. As a retail company It is significant to Compare Sales per store and Company Totals on Daily basis with the exact day last year. In my example there are three stores: Store A, B and C. Store A opened doors on 01/10/2011 and steel open till today. Store B opened doors on 04/10/2011 and still open and Store C is opened on 01/10/2011 and closed on 06/10/2011. The target is to select one date in 2012 and the table return the sales for that day per store, the sales for that day last year and Company totals for Day to Day, month to month and year to year comparison only for operational dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 09:22:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Like-for-Like-Sales-Calculation/m-p/452192#M1163686</guid>
      <dc:creator />
      <dc:date>2012-10-25T09:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Like for Like Sales Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Like-for-Like-Sales-Calculation/m-p/452193#M1163687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attched qvw. Is that what you need?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 11:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Like-for-Like-Sales-Calculation/m-p/452193#M1163687</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-25T11:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Like for Like Sales Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Like-for-Like-Sales-Calculation/m-p/452194#M1163688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to say that is a very interesting aproach but the target is to calculate sales, let's say for the B store this year sales have to be calculated from the correspending date of the openening day (04/10/2012). And for the C Store respectively last year month sales have to be calculated till the last day working of this year. (02/10/2011).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I have update the data file. and used with your qlikview file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 07:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Like-for-Like-Sales-Calculation/m-p/452194#M1163688</guid>
      <dc:creator />
      <dc:date>2012-10-26T07:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Like for Like Sales Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Like-for-Like-Sales-Calculation/m-p/452195#M1163689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN-US;"&gt;I would create a like for-like-dimension table for each combination of store and date with a flag weather this combination is Like-for-like acceptable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN-US;"&gt;I would also create a calendar dimension table with a corresponding like for like date for each date in the calendar.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN-US;"&gt;Then you should then be able with some set analysis to make your calculation on all measures in your fact table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Henrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Oct 2012 14:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Like-for-Like-Sales-Calculation/m-p/452195#M1163689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-27T14:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Like for Like Sales Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Like-for-Like-Sales-Calculation/m-p/452196#M1163691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Like for Like Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It is common to require to do a "like-for-like" comparison in the retail sector.&amp;nbsp; An approach is to use "flags" in the script and to use these flags to calcuate the comparable sales amounts for the current &amp;amp; prior periods.&amp;nbsp; The script calcualtes flags, at a&amp;nbsp; record level for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) "comparable" sales in Current Period&lt;/P&gt;&lt;P&gt;b) "comparable" sales in Prior Period&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The basis of comparison usually requires to be considered carefully.&amp;nbsp; In a simple example (as in your data set) the key is that the Store is open on the same &lt;STRONG&gt;Date&lt;/STRONG&gt; in the previous year; this provides (a) the comparable sales in the current period.&amp;nbsp; However, it is also necessary to calculate (b) the "comparable" sales in the prior period to ensure that the comparison reflects any closures in the current period.&lt;/P&gt;&lt;P&gt;This is a generic approach, and I hope it helps in your case.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;To achieve your analysis requirements you will require to use Set Analysis to enable the selection of a &lt;STRONG&gt;Date&lt;/STRONG&gt; and the calcualtion of the &lt;STRONG&gt;Month&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;Year&lt;/STRONG&gt; values. I have included some basic set analysis.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 14:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Like-for-Like-Sales-Calculation/m-p/452196#M1163691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-15T14:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Like for Like Sales Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Like-for-Like-Sales-Calculation/m-p/452197#M1163693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nicolas, hello.&lt;/P&gt;&lt;P&gt;Can you place script text your L4L_FlagMethod. I'm working on&amp;nbsp; L4L Sales Compare Method for FMCG Distributor. I need compare Year-To-Year Volume, only for Customer which was in LYTD and now YTD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks a lot.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2017 12:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Like-for-Like-Sales-Calculation/m-p/452197#M1163693</guid>
      <dc:creator>vadim_grab</dc:creator>
      <dc:date>2017-01-08T12:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Like for Like Sales Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Like-for-Like-Sales-Calculation/m-p/452198#M1163695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vadim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Were you able to derive the L4L_Flag? If yes can you please share the script please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 18:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Like-for-Like-Sales-Calculation/m-p/452198#M1163695</guid>
      <dc:creator />
      <dc:date>2017-08-10T18:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Like for Like Sales Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Like-for-Like-Sales-Calculation/m-p/452199#M1163696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for long answer.&lt;/P&gt;&lt;P&gt;Unfortunately, Nicolas never answered! I'm park this question for the best time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you solved the issue already, pls, share you solution.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Vadim &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 19:04:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Like-for-Like-Sales-Calculation/m-p/452199#M1163696</guid>
      <dc:creator>vadim_grab</dc:creator>
      <dc:date>2017-09-18T19:04:12Z</dc:date>
    </item>
  </channel>
</rss>

