<?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: Date Issues in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Issues/m-p/446498#M486146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=sum({$&amp;lt;Equivalent_date=&lt;STRONG&gt;{'$(=only(Date))'}&lt;/STRONG&gt;, Date=&amp;gt;} Sales_Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Note, if you want to use Date or Equivalent_date as dimension then set analysis won't work. You'll have to create another table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;Load Date, Store_id, Amount, Equivalent_date,&lt;/P&gt;&lt;P&gt;autonumber(Store_id&amp;amp;Equivalent_date) as Key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales_LY:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Load autonumber(Store_id&amp;amp;Date) as Key,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Amount as Amount_LY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;resident Sales;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can use Date and Store_id as dimensions and as expressions sum(Amount) and sum(Amount_LY)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Mar 2013 14:26:44 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-03-16T14:26:44Z</dc:date>
    <item>
      <title>Date Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Issues/m-p/446495#M486143</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;&amp;nbsp; Here is my problem, i have a sales table that started last year, and i want to compare sales from this year with the year before in two ways, the first like going exactly 365 days back and the other pointing to a specific date in the past, The table goes like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Sales_Amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Store_Id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Equivalent_date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last field would be the equivalent day to compare (to solve issues arround feb 29 or special day sales).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im trying something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Equivalent_date={"=$(Date)"}, Date=&amp;gt;} Sales_Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; It just dont work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Mar 2013 00:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Issues/m-p/446495#M486143</guid>
      <dc:creator />
      <dc:date>2013-03-16T00:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Issues/m-p/446496#M486144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to show max year and previous year comparision am i right then conver the date as a year. Can you send that app i will do your need.&lt;/P&gt;&lt;P&gt;&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;Nirmal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Mar 2013 04:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Issues/m-p/446496#M486144</guid>
      <dc:creator />
      <dc:date>2013-03-16T04:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Date Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Issues/m-p/446497#M486145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Actual Year&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;sum({&amp;lt;Year={$(=max(Year))}&amp;gt;} &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sales_Amount&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Last Year&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;sum({&amp;lt;Year={$(=max(Year -1))}&amp;gt;} &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sales_Amount&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Mar 2013 10:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Issues/m-p/446497#M486145</guid>
      <dc:creator>khadeer</dc:creator>
      <dc:date>2013-03-16T10:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Issues/m-p/446498#M486146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=sum({$&amp;lt;Equivalent_date=&lt;STRONG&gt;{'$(=only(Date))'}&lt;/STRONG&gt;, Date=&amp;gt;} Sales_Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Note, if you want to use Date or Equivalent_date as dimension then set analysis won't work. You'll have to create another table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;Load Date, Store_id, Amount, Equivalent_date,&lt;/P&gt;&lt;P&gt;autonumber(Store_id&amp;amp;Equivalent_date) as Key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales_LY:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Load autonumber(Store_id&amp;amp;Date) as Key,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Amount as Amount_LY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;resident Sales;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can use Date and Store_id as dimensions and as expressions sum(Amount) and sum(Amount_LY)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Mar 2013 14:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Issues/m-p/446498#M486146</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-16T14:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Issues/m-p/446499#M486147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So how can I find rolling -365 days sales with max selection of year and/or month ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 09:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Issues/m-p/446499#M486147</guid>
      <dc:creator>makkemik</dc:creator>
      <dc:date>2014-04-28T09:26:33Z</dc:date>
    </item>
  </channel>
</rss>

