<?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 Same Store - Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Same-Store-Set-Analysis/m-p/222627#M499909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need set analysis with advanced searches.&lt;/P&gt;&lt;P&gt;From the help, you need something similar to the second example:&lt;/P&gt;&lt;H3&gt;Set Modifiers with advanced searches&lt;/H3&gt;&lt;P style="background-color:transparent;margin-bottom:0px;"&gt;Advanced searches using wildcards and aggregations can be used to define sets.&lt;/P&gt;&lt;H2&gt;Examples:&lt;/H2&gt;&lt;P style="margin-left:40px;"&gt;sum( {$-1&amp;lt;Product = {"*Internal*", "*Domestic*"}&amp;gt;} Sales )&lt;BR /&gt;returns the sales for current selection, excluding transactions pertaining to products with the string 'Internal' or 'Domestic' in the product name.&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;sum( {$&amp;lt;Customer = {"=Sum({1&amp;lt;Year = {2007}&amp;gt;} Sales ) &amp;gt; 1000000"}&amp;gt;} Sales )&lt;BR /&gt;returns the sales for current selection, but with a new selection in the "Customer" field: only customers who during 2007 had a total sales of more than 1000000.&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;You can use something like:&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;sum( {$&amp;lt;Store= {"=Sum({1&amp;lt;Year = {2010}&amp;gt;} Sales ) &amp;gt; 1000000"}&amp;gt;} Sales )&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2011 21:06:25 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2011-04-19T21:06:25Z</dc:date>
    <item>
      <title>Same Store - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Same-Store-Set-Analysis/m-p/222626#M499908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a situation where I am wanting to compare sales numbers from two different periods, but I only want to include sales for stores that existed in the prior period. The duration of the period and how far back it is are flexible so I must do this in the front-end.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Year Store Sales&lt;/P&gt;&lt;P&gt;2010 123 10,000&lt;/P&gt;&lt;P&gt;2011 123 10,000&lt;/P&gt;&lt;P&gt;2011 456 15,000&lt;/P&gt;&lt;P&gt;Store Sales 2010: 10,000&lt;/P&gt;&lt;P&gt;Same Store Sales 2011: 10,000&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 21:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-Store-Set-Analysis/m-p/222626#M499908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-19T21:00:13Z</dc:date>
    </item>
    <item>
      <title>Same Store - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Same-Store-Set-Analysis/m-p/222627#M499909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need set analysis with advanced searches.&lt;/P&gt;&lt;P&gt;From the help, you need something similar to the second example:&lt;/P&gt;&lt;H3&gt;Set Modifiers with advanced searches&lt;/H3&gt;&lt;P style="background-color:transparent;margin-bottom:0px;"&gt;Advanced searches using wildcards and aggregations can be used to define sets.&lt;/P&gt;&lt;H2&gt;Examples:&lt;/H2&gt;&lt;P style="margin-left:40px;"&gt;sum( {$-1&amp;lt;Product = {"*Internal*", "*Domestic*"}&amp;gt;} Sales )&lt;BR /&gt;returns the sales for current selection, excluding transactions pertaining to products with the string 'Internal' or 'Domestic' in the product name.&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;sum( {$&amp;lt;Customer = {"=Sum({1&amp;lt;Year = {2007}&amp;gt;} Sales ) &amp;gt; 1000000"}&amp;gt;} Sales )&lt;BR /&gt;returns the sales for current selection, but with a new selection in the "Customer" field: only customers who during 2007 had a total sales of more than 1000000.&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;You can use something like:&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;sum( {$&amp;lt;Store= {"=Sum({1&amp;lt;Year = {2010}&amp;gt;} Sales ) &amp;gt; 1000000"}&amp;gt;} Sales )&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 21:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-Store-Set-Analysis/m-p/222627#M499909</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-04-19T21:06:25Z</dc:date>
    </item>
    <item>
      <title>Same Store - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Same-Store-Set-Analysis/m-p/222628#M499910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was the boost I needed. I am ending up with something like:&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;Store={"=SUM({1&amp;lt;Period={2}&amp;gt;}Sales)&amp;gt;0"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it will only include the stores that had sales greater than 0 in the previous period.&lt;/P&gt;&lt;P&gt;Thanks again for quick response. Awesome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 21:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-Store-Set-Analysis/m-p/222628#M499910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-19T21:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Same Store - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Same-Store-Set-Analysis/m-p/222629#M499911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've been able to use this post to get very close to the solution I'm looking for - but I'm not quite there yet.&amp;nbsp; I have a chart that has dimensions of Year and expressions of [Comparison Date], [All Store Sales], and [Same Store Sales] that I am attempting to get this to work in.&amp;nbsp;&amp;nbsp; I have a calendar object, that when a date is selected, the previous few years are displayed along with their corresponding [All Store Sales] and [Comparison Date] which is a variable found with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only({$&amp;lt;Weekday={$(=$(vSelectedDate_Weekday))}, WeekNumber={$(=$(vSelectedDate_Week))}, Date=, Store=, Year = {"&amp;lt;=$(vSelectedDate_Year)"}&amp;gt;} Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables within that variable are simply retrieving the weekday, week, and year of the selected date in the calendar object.&amp;nbsp; The comparison date is the date we're interested in for same store sales since it's the same day of week in the same week for the year prior.&amp;nbsp; I've tried several different instances to get the expression [Same Store Sales] to work but haven't had any luck.&amp;nbsp; However, I can get it to work if I hardcode a date into the expression like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Store={"=SUM({1&amp;lt;Date={'3/11/2012'}&amp;gt;}DailyTot_Sales)&amp;gt;0"}&amp;gt;}DailyTot_Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That expression will return a value for the top row as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Same Store Comparison for Sunday - 3/10/2013&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Year&amp;nbsp;&amp;nbsp;&amp;nbsp; Comparison Date&amp;nbsp;&amp;nbsp;&amp;nbsp; All Stores Sales&amp;nbsp;&amp;nbsp;&amp;nbsp; Same Store Sales&lt;/P&gt;&lt;P&gt;2013&amp;nbsp;&amp;nbsp;&amp;nbsp; 3/10/2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100,000.00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 95,000.00&lt;/P&gt;&lt;P&gt;2012&amp;nbsp;&amp;nbsp;&amp;nbsp; 3/11/2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 85,123.00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00&lt;/P&gt;&lt;P&gt;2011&amp;nbsp;&amp;nbsp;&amp;nbsp; 3/13/2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80,200.00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00&lt;/P&gt;&lt;P&gt;2010&amp;nbsp;&amp;nbsp;&amp;nbsp; 3/14/2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 63,600.00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to be able to somehow reference the [Comparison Date] column (which is = $(vComparsonDate)) when calculating my [Same Store Sales].&amp;nbsp; I've tried that in many ways including the following but haven't had any success:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Store={"=sum({1&amp;lt;Date={$(=$(vComparisonDate))}&amp;gt;}DailyTot_Sales)&amp;gt;0"}&amp;gt;}DailyTot_Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried several different syntaxes as I've found several set analysis examples referencing variables but haven't had any luck.&amp;nbsp; I've also tried to convert the Date column and vComparisonDate to number columns and had the same results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone offer any suggestions?&amp;nbsp; Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 18:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-Store-Set-Analysis/m-p/222629#M499911</guid>
      <dc:creator />
      <dc:date>2013-03-11T18:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Same Store - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Same-Store-Set-Analysis/m-p/222630#M499912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps I should try and simplify my question from above.&amp;nbsp; Above, Erich and Aaron cite a couple examples of using Set Modifiers with Advanced searches.&amp;nbsp; I've been able to get this to work as well, but only if I hardcode a value in my set analysis.&amp;nbsp; Is there anyway to use a Set Analysis with Advanced searches with a variable such as the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Store={"=sum({1&amp;lt;Date={$(=$(vComparisonDate))}&amp;gt;}Sales)&amp;gt;0"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case the variable vComparisonDate is a single value in the format '3/15/2013'.&amp;nbsp; I've also tried this using a num as well without any luck.&amp;nbsp; Am I trying to accomplish something that isn't possible with this syntax?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 14:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-Store-Set-Analysis/m-p/222630#M499912</guid>
      <dc:creator />
      <dc:date>2013-03-19T14:42:45Z</dc:date>
    </item>
  </channel>
</rss>

