<?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 Compare Sales for Same DAY Last Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165974#M502032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to user set analisys in this case, creating two expressions, one for the actual the other for theprevious year. There are a lot of information about it in the comunity.&lt;/P&gt;&lt;P&gt;I like this example http://community.qlik.com/media/p/82604.aspx&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Oct 2010 17:43:30 GMT</pubDate>
    <dc:creator>fernandotoledo</dc:creator>
    <dc:date>2010-10-29T17:43:30Z</dc:date>
    <item>
      <title>Compare Sales for Same DAY Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165973#M502030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The end user wants to compare sales by DATE for the same date last year.&lt;/P&gt;&lt;P&gt;In the example below, 01/01/2010 Sales are $304,304, the sales listed in Same Day Last Year are for the date (01/02/2009)&lt;/P&gt;&lt;P&gt;Currently I am only showing sales by actual date 01/01/2010 and 01/02/2009 but not next to each other as the end user is looking for...&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 330pt; border-collapse: collapse;" width="439"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 48pt;" width="64" /&gt;&lt;COL style="width: 64pt; mso-width-source: userset; mso-width-alt: 3108;" width="85" /&gt;&lt;COL span="2" style="width: 48pt;" width="64" /&gt;&lt;COL style="width: 122pt; mso-width-source: userset; mso-width-alt: 5924;" width="162" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="background-color: transparent; width: 48pt; height: 15pt; border: windowtext 0.5pt solid;" width="64"&gt;Week #&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 64pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="85"&gt;Day of Week&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 48pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="64"&gt;Date&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 48pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="64"&gt;Sales&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 122pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="162"&gt;Sales Same Day Last Year&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Friday&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1/1/2010&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;$304,304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;$328,120&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;my results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 338pt; border-collapse: collapse;" width="450"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 48pt;" width="64" /&gt;&lt;COL style="width: 64pt; mso-width-source: userset; mso-width-alt: 3108;" width="85" /&gt;&lt;COL style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;" width="75" /&gt;&lt;COL style="width: 48pt;" width="64" /&gt;&lt;COL style="width: 122pt; mso-width-source: userset; mso-width-alt: 5924;" width="162" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="background-color: transparent; width: 48pt; height: 15pt; border: windowtext 0.5pt solid;" width="64"&gt;Week #&lt;/TD&gt;&lt;TD class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 64pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="85"&gt;Day of Week&lt;/TD&gt;&lt;TD class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 56pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="75"&gt;Date&lt;/TD&gt;&lt;TD class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 48pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="64"&gt;Sales&lt;/TD&gt;&lt;TD class="xl68" style="border-bottom: windowtext 0.5pt solid; border-left: #ece9d8; background-color: transparent; width: 122pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="162"&gt;Sales Same Day Last Year&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" class="xl69" height="20" style="border-bottom: #ece9d8; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: #ece9d8; border-right: windowtext 0.5pt solid;"&gt;1&lt;/TD&gt;&lt;TD class="xl73" style="border-bottom: #ece9d8; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Friday&lt;/TD&gt;&lt;TD align="right" class="xl74" style="border-bottom: #ece9d8; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1/1/2010&lt;/TD&gt;&lt;TD align="right" class="xl76" style="border-bottom: #ece9d8; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;$304,034&lt;/TD&gt;&lt;TD class="xl75" style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl69" height="20" style="border-bottom: #ece9d8; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: #ece9d8; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: #ece9d8; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: #ece9d8; border-right: windowtext 0.5pt solid;"&gt;1/2/2009&lt;/TD&gt;&lt;TD align="right" class="xl77" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: #ece9d8; border-right: windowtext 0.5pt solid;"&gt;$328,120&lt;/TD&gt;&lt;TD class="xl67" style="border-bottom: windowtext 0.5pt solid; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl69" height="20" style="border-bottom: #ece9d8; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: #ece9d8; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD class="xl69" style="border-bottom: #ece9d8; border-left: windowtext; background-color: transparent; border-top: #ece9d8; border-right: windowtext 0.5pt solid;"&gt;Saturday&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-bottom: #ece9d8; border-left: windowtext; background-color: transparent; border-top: #ece9d8; border-right: windowtext 0.5pt solid;"&gt;1/2/2010&lt;/TD&gt;&lt;TD align="right" class="xl78" style="border-bottom: #ece9d8; border-left: windowtext; background-color: transparent; border-top: #ece9d8; border-right: windowtext 0.5pt solid;"&gt;$475,357&lt;/TD&gt;&lt;TD class="xl66" style="border-bottom: #ece9d8; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl70" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: #ece9d8; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: #ece9d8; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: #ece9d8; border-right: windowtext 0.5pt solid;"&gt;1/3/2009&lt;/TD&gt;&lt;TD align="right" class="xl77" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: #ece9d8; border-right: windowtext 0.5pt solid;"&gt;$338,492&lt;/TD&gt;&lt;TD class="xl67" style="border-bottom: windowtext 0.5pt solid; border-left: #ece9d8; background-color: transparent; border-top: #ece9d8; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 17:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165973#M502030</guid>
      <dc:creator>CB308</dc:creator>
      <dc:date>2010-10-29T17:30:49Z</dc:date>
    </item>
    <item>
      <title>Compare Sales for Same DAY Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165974#M502032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to user set analisys in this case, creating two expressions, one for the actual the other for theprevious year. There are a lot of information about it in the comunity.&lt;/P&gt;&lt;P&gt;I like this example http://community.qlik.com/media/p/82604.aspx&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 17:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165974#M502032</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2010-10-29T17:43:30Z</dc:date>
    </item>
    <item>
      <title>Compare Sales for Same DAY Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165975#M502034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way is to generate an AsOf table based on your rules for which day from last year we want to compare to:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;AsOfDate, SaleType, Date&lt;BR /&gt;1/1/2010, Sales, 1/1/2010&lt;BR /&gt;1/1/2010, Sales Same Day Last Year, 1/2/2009&lt;BR /&gt;1/2/2010, Sales, 1/2/2010&lt;BR /&gt;1/2/2010, Sales Same Day Last Year, 1/3/2009&lt;BR /&gt;etc.&lt;/P&gt;&lt;P&gt;Use AsOfDate instead of Date in your pivot table. Add SaleType as a dimension, and move it to the top of the chart. Use sum(Sales) as the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 17:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165975#M502034</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-29T17:44:39Z</dc:date>
    </item>
    <item>
      <title>Compare Sales for Same DAY Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165976#M502036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You mean year to date comparisons? Say this year (01/01 - 28/10) to the same period of the previous year? If so, use the YearToDate() function, that returns true when a date corresponds to a date in a previous year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt; LastYTDFlag = {'-1'}, CurrentYTDFlag = {'-1'} &amp;gt;} Sales)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;When you have previously defined those fields in your load script as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;YearToDate(DateField, -1) AS LastYTDFlag,YearToDate(DateField) AS CurrentYTDFlag,&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 17:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165976#M502036</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-10-29T17:47:56Z</dc:date>
    </item>
    <item>
      <title>Compare Sales for Same DAY Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165977#M502038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not year to date, i mean actual date versus same date last year.&lt;/P&gt;&lt;P&gt;01/01/2010 vs 01/02/2009&lt;/P&gt;&lt;P&gt;etc.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 18:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165977#M502038</guid>
      <dc:creator>CB308</dc:creator>
      <dc:date>2010-10-29T18:14:47Z</dc:date>
    </item>
    <item>
      <title>Compare Sales for Same DAY Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165978#M502039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you figure this out candiceb? I have the same exact need.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 15:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165978#M502039</guid>
      <dc:creator />
      <dc:date>2011-10-19T15:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Sales for Same DAY Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165979#M502040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a calendar linked to your fact table you should be able to accomplish the task with set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 1&lt;/P&gt;&lt;P&gt;Most recent completed week&lt;/P&gt;&lt;P&gt;Sum( {$&amp;lt;Week=, Date = {'$(=WeekStart(Max(Date),0,0))'}&amp;gt;} [Sales] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 2&lt;/P&gt;&lt;P&gt;52 weeks prior from the most recent completed week&lt;/P&gt;&lt;P&gt;Sum( {$&amp;lt;Week=, Date = {'$(=WeekStart(Max(Date),-52,0))'}&amp;gt;} [Sales] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my examples I am using weeks, &lt;SPAN style="text-decoration: line-through;"&gt;you should be able to change WeekStart to DateStart in the expression. &lt;/SPAN&gt; In the second example the -52 is setting the week to be selected as 52 weeks in the past from the current week or week that has been selected with a calendar.&amp;nbsp; Your negative value in expression number two would be the nukmber of days you want to go back in the past and compare to current.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 16:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165979#M502040</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-19T16:55:49Z</dc:date>
    </item>
    <item>
      <title>Compare Sales for Same DAY Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165980#M502041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay so this is what I've modified it to. But I don't get any data with DateStart. But I do when I have WeekStart in the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( {$&amp;lt;Week =,Date= {'$(=DateStart(Max(Date),-1,0))'}&amp;gt;} Cnt)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 17:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165980#M502041</guid>
      <dc:creator />
      <dc:date>2011-10-19T17:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Sales for Same DAY Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165981#M502042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Sum({&amp;lt; DateField = {'$(=Date(Today()))', '$(=Date(AddYears(Today(), -1)))'} &amp;gt;} Amount)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 18:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165981#M502042</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-19T18:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Sales for Same DAY Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165982#M502043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I face the same need, I solve it his way :&lt;/P&gt;&lt;P&gt;In the following example, I calculate the same work day last year assuming it has the same name ('mon', 'tue.'..) with the function weekday, and the same week number (from 1 to 52) with function week: &lt;/P&gt;&lt;P&gt;My Calendar has fields named Date, WeekDay, Week, Year determined like this :&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;TempDate as Date,&lt;/P&gt;&lt;P&gt;Week(TempDate) as Week,&lt;/P&gt;&lt;P&gt;Month(TempDate) as Month,&lt;/P&gt;&lt;P&gt;Year(TempDate) as Year,&lt;/P&gt;&lt;P&gt;Day(TempDate) as Day,&lt;/P&gt;&lt;P&gt;WeekDay(TempDate) as WeekDay ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales contains the ... Sales amount&lt;/P&gt;&lt;P&gt;To get :&lt;/P&gt;&lt;P&gt;Today's Sales :&lt;/P&gt;&lt;P&gt;= sum( {&amp;lt;Date={ '$(= today() )' }&amp;gt;} Sales )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same workday last year Sales :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= sum( { 1&amp;lt; WeekDay = {'$(= weekday( today() ))'} , Week = {'$(=week(today()))'}, Year = {'$(=year(today())-1)'} &amp;gt; } Sales ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to do what you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Nov 2011 17:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165982#M502043</guid>
      <dc:creator />
      <dc:date>2011-11-20T17:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Sales for Same DAY Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165983#M502044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the same problem but i need it in backend ,means in script.I want to compare sales of this year to previous year but for the same day of previous year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Rathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 07:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165983#M502044</guid>
      <dc:creator />
      <dc:date>2011-12-12T07:30:31Z</dc:date>
    </item>
    <item>
      <title>Compare Sales for Same DAY Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165984#M502045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking back at these, they both worked for me. And I got the correct values for the one day. Now is there a way to create a rollup like this? I want to compare each day for the 12 months (365 days) to the previous 12-24 months, 365-730.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how I would do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 18:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165984#M502045</guid>
      <dc:creator />
      <dc:date>2012-05-04T18:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Sales for Same DAY Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165985#M502046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this will help you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It contains diffrent YTD calculations using Set Analysis....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 07:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Sales-for-Same-DAY-Last-Year/m-p/165985#M502046</guid>
      <dc:creator>sravan_v007</dc:creator>
      <dc:date>2013-07-03T07:49:37Z</dc:date>
    </item>
  </channel>
</rss>

