<?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 Like for Like in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280506#M499891</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;You appear to have adequately explained what you don't want, but not exactly what you do want.&amp;nbsp; Perhaps you could post an example QVW showing what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am guessing that a P() set might do the trick, but I can't give you a good response without knowing what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jun 2011 22:16:00 GMT</pubDate>
    <dc:creator>stephencredmond</dc:creator>
    <dc:date>2011-06-10T22:16:00Z</dc:date>
    <item>
      <title>Like for Like</title>
      <link>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280505#M499890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there an easy way to exclude values from an expression that don't appear in all returned values of the dimension. ie i would like to be able to only return Like for Like values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg I want to be able to compare the footfall of our shopping centers on a like for like basis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already read the discussion &lt;A _jive_internal="true" href="https://community.qlik.com/thread/1342"&gt;http://community.qlik.com/thread/1342&lt;/A&gt; but this did not work for my circumstances as want to be able to change selections and circle dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lawrence&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 16:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280505#M499890</guid>
      <dc:creator />
      <dc:date>2011-06-10T16:36:47Z</dc:date>
    </item>
    <item>
      <title>Like for Like</title>
      <link>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280506#M499891</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;You appear to have adequately explained what you don't want, but not exactly what you do want.&amp;nbsp; Perhaps you could post an example QVW showing what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am guessing that a P() set might do the trick, but I can't give you a good response without knowing what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 22:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280506#M499891</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2011-06-10T22:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Like for Like</title>
      <link>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280507#M499892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stephen,&lt;/P&gt;&lt;P&gt;Thanks for responding, I have attached the QVW file I am working on. I deally I am looking to have a flag or button where I can switch from all results to just like for like results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the example below I would like to exclude sites that don't appear in all four years, as this screws the results and therefore need a like for like comparison.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿&lt;IMG alt="footfall screen grab.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/5185_footfall+screen+grab.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lawrence&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2011 11:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280507#M499892</guid>
      <dc:creator />
      <dc:date>2011-06-13T11:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Like for Like</title>
      <link>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280508#M499893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lawrence,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bit of a challenge there - thanks!&amp;nbsp; In fact, I have just blogged on this subject: &lt;A href="http://qliktips.blogspot.com/2011/06/and-mode-in-set-analysis.html"&gt;http://qliktips.blogspot.com/2011/06/and-mode-in-set-analysis.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to see only sites that have footfall in each year.&amp;nbsp; The default search (and Set) in QlikView is "OR" whereas you want an "AND".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in your script, you will need to load a separate Footfall Year field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FF_Year:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load Distinct&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SiteName,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Year(FootfallDate) As FootfallYear&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Footfall;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add the new field to the layout (you can remove it later if you want but it might be handy) and set the "AND-mode" option in the properties.&amp;nbsp; You might need to reload at this stage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use this expression in your chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;FootfallYear=P({$} Year)&amp;gt;} [In Count])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this gets you along further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2011 10:45:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280508#M499893</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2011-06-14T10:45:25Z</dc:date>
    </item>
    <item>
      <title>Like for Like</title>
      <link>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280509#M499894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Stephen,&lt;/P&gt;&lt;P&gt;Thanks for this and you blog posting, that commuicated my problem it more clarity than I could have managed. Your solution work a treatt, however is there an easy way to switch the selection between AND and OR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lawrence&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 14:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280509#M499894</guid>
      <dc:creator />
      <dc:date>2011-06-20T14:14:09Z</dc:date>
    </item>
    <item>
      <title>Like for Like</title>
      <link>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280510#M499895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lawrence,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way is to have 2 fields - one for AND and one for OR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then change your expressions and show/hide fields based on whatever way you want to switch them (button, etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 14:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280510#M499895</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2011-06-20T14:31:14Z</dc:date>
    </item>
    <item>
      <title>Like for Like</title>
      <link>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280511#M499896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lawrence &amp;amp; Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still on PE, so can't open you qvw, but think there may be an easier solution like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {$&amp;lt;SiteName = { "=(count( DISTINCT Year(FootballDate) )=4)" }&amp;gt;} [In Count]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tested it on the example from Stephen's blog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;BR /&gt; LOAD * INLINE [&lt;BR /&gt; Customer, Year, Sales&lt;BR /&gt; Customer A, 2009, 111&lt;BR /&gt; Customer B, 2009, 111&lt;BR /&gt; Customer C, 2009, 111&lt;BR /&gt; Customer A, 2010, 222&lt;BR /&gt; Customer B, 2010, 222&lt;BR /&gt; Customer C, 2010, 222&lt;BR /&gt; Customer A, 2011, 333&lt;BR /&gt; Customer C, 2011, 333&lt;BR /&gt; ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {$&amp;lt;Customer = { "=(count( Year )=3)" }&amp;gt;} Sales) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked, so thinking might work for you too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth Jeroen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 19:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280511#M499896</guid>
      <dc:creator />
      <dc:date>2011-06-20T19:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Like for Like</title>
      <link>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280512#M499897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution is extremely simple. I use the function aggr that returns a set of rows for each combination of the fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The case is the following:&lt;/P&gt;&lt;P&gt;A table with 4 fields: Year, Month, Shop, Sales, having data for 2010 and 2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Like for Like KPI for a shop should compare only the months having sales on both years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The job is done by a variable that returns only the records having sales on the same month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;//Variable L4L_Sales(year1, year2): Returns the sales of Year1 if there are sales on the same month of year2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;SET L4L_Sales = aggr(if((sum({$&amp;lt;[Year]={$1}&amp;gt;}Sales) &amp;gt; 0) AND (sum({$&amp;lt;[Year]={$2}&amp;gt;}Sales) &amp;gt; 0), sum({$&amp;lt;[Year]={$1}&amp;gt;}Sales)), Shop, Month);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a grid chart then we can use the following expression:&lt;/P&gt;&lt;P&gt;L4L Percent:&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt; (sum($L4L_Sales(2011, 2010)) - sum($L4L_Sales(2010, 2011)))/sum($L4L_Sales(2010, 2011))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 08:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280512#M499897</guid>
      <dc:creator />
      <dc:date>2011-07-28T08:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Like for Like</title>
      <link>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280513#M499898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Angelos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like your approach it is extremely interesting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any example for me about L4L analyse;&lt;/P&gt;&lt;P&gt;I have four Table;&lt;/P&gt;&lt;P&gt;1- Clients Table&lt;/P&gt;&lt;P&gt;2- Store Table (including StoreCode, StoreName, GPS locations, Store &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;opening Date&lt;/STRONG&gt;&lt;/SPAN&gt; and Closing date, Etc...)&lt;/P&gt;&lt;P&gt;3- Calender Table&lt;/P&gt;&lt;P&gt;4- Sales Transaction Table (including StoreCode, ClientCode, Date, Qty, SalesSum, InvoiceNo, InvoiceLineID, Etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a pivot chart total sales and L4L basis according to Store Opening dates. we will take MonthStart(OpeningDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help and share any example. My data is nearly 2 M row. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Murat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 11:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Like-for-Like/m-p/280513#M499898</guid>
      <dc:creator>makkemik</dc:creator>
      <dc:date>2014-02-17T11:26:09Z</dc:date>
    </item>
  </channel>
</rss>

