<?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: Prior year set analysis based on date column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Prior-year-set-analysis-based-on-date-column/m-p/1551884#M744100</link>
    <description>&lt;P&gt;if you put as dimensions month, day and year in a pivot table will give as a result which were the sales for a given day of the year and the respective day of the previous year. if you want to use set analysis you would have to make two expressions one for the current year and one for the previous year:&lt;BR /&gt;sum ({&amp;lt;Year = {'&amp;gt; = $ (= max (Year))'}&amp;gt;} Sales)&lt;BR /&gt;sum ({&amp;lt;Year = {'&amp;lt;= $ (= max (Year) -1)'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Prior year.png" style="width: 781px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7203iFE5907242ED429C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Prior year.png" alt="Prior year.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I do not know if it's the result you're looking for. tell me if that solution serves you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2019 15:45:11 GMT</pubDate>
    <dc:creator>tincholiver</dc:creator>
    <dc:date>2019-03-04T15:45:11Z</dc:date>
    <item>
      <title>Prior year set analysis based on date column</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-year-set-analysis-based-on-date-column/m-p/1551846#M744099</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a table that I need current year amount and prior year amount on. I have a date column to drive the measures. The first measure is fine as the date column drives the Actual amount. However, for prior year, I need the amount to be driven on the date column minus 365. So 2/26/2019 - 365, 3/1/2019 - 365, etc. How can I accomplish this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Actual&lt;/TD&gt;&lt;TD&gt;Prior Year&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/26/2019&lt;/TD&gt;&lt;TD&gt;$20,025&lt;/TD&gt;&lt;TD&gt;$0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3/1/2019&lt;/TD&gt;&lt;TD&gt;$23,816&lt;/TD&gt;&lt;TD&gt;$0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/25/2019&lt;/TD&gt;&lt;TD&gt;$13,246&lt;/TD&gt;&lt;TD&gt;$0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/27/2019&lt;/TD&gt;&lt;TD&gt;$14,021&lt;/TD&gt;&lt;TD&gt;$0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/28/2019&lt;/TD&gt;&lt;TD&gt;$23,697&lt;/TD&gt;&lt;TD&gt;$0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3/2/2019&lt;/TD&gt;&lt;TD&gt;$126&lt;/TD&gt;&lt;TD&gt;$0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/24/2019&lt;/TD&gt;&lt;TD&gt;$6,247&lt;/TD&gt;&lt;TD&gt;$0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-year-set-analysis-based-on-date-column/m-p/1551846#M744099</guid>
      <dc:creator>uko223</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Prior year set analysis based on date column</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-year-set-analysis-based-on-date-column/m-p/1551884#M744100</link>
      <description>&lt;P&gt;if you put as dimensions month, day and year in a pivot table will give as a result which were the sales for a given day of the year and the respective day of the previous year. if you want to use set analysis you would have to make two expressions one for the current year and one for the previous year:&lt;BR /&gt;sum ({&amp;lt;Year = {'&amp;gt; = $ (= max (Year))'}&amp;gt;} Sales)&lt;BR /&gt;sum ({&amp;lt;Year = {'&amp;lt;= $ (= max (Year) -1)'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Prior year.png" style="width: 781px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7203iFE5907242ED429C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Prior year.png" alt="Prior year.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I do not know if it's the result you're looking for. tell me if that solution serves you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 15:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-year-set-analysis-based-on-date-column/m-p/1551884#M744100</guid>
      <dc:creator>tincholiver</dc:creator>
      <dc:date>2019-03-04T15:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Prior year set analysis based on date column</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-year-set-analysis-based-on-date-column/m-p/1551891#M744101</link>
      <description>&lt;P&gt;You could it arrange it your script with something like this:&lt;/P&gt;&lt;P&gt;Table:&lt;BR /&gt;LOAD&lt;BR /&gt;Date,&lt;BR /&gt;Actual&lt;BR /&gt;Resident YourTable;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;Date + 365 as Date,&lt;BR /&gt;Actual as [Prior Year]&lt;BR /&gt;Resident YourTable&lt;BR /&gt;Where Date &amp;lt;= Date(Today())-365;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 15:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-year-set-analysis-based-on-date-column/m-p/1551891#M744101</guid>
      <dc:creator>martenlouisse</dc:creator>
      <dc:date>2019-03-04T15:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Prior year set analysis based on date column</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-year-set-analysis-based-on-date-column/m-p/1552992#M744102</link>
      <description>Thank you!</description>
      <pubDate>Wed, 06 Mar 2019 13:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-year-set-analysis-based-on-date-column/m-p/1552992#M744102</guid>
      <dc:creator>uko223</dc:creator>
      <dc:date>2019-03-06T13:44:55Z</dc:date>
    </item>
  </channel>
</rss>

