<?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 Comparing FromDate-ToDate with same period last year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-FromDate-ToDate-with-same-period-last-year/m-p/1755813#M455297</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have this expresssion for summing sales in a given period. Im trying to build an expression summing sales in the same From/To date period last year, but it doesnt seem to work out.&lt;/P&gt;&lt;P&gt;This year:&lt;/P&gt;&lt;P&gt;Sum( if( Date &amp;gt;= vKampFromDate AND Date &amp;lt;= vKampToDate, Sales))&lt;/P&gt;&lt;P&gt;Last year:&lt;/P&gt;&lt;P&gt;??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Mon, 26 Oct 2020 10:33:02 GMT</pubDate>
    <dc:creator>Selgum</dc:creator>
    <dc:date>2020-10-26T10:33:02Z</dc:date>
    <item>
      <title>Comparing FromDate-ToDate with same period last year</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-FromDate-ToDate-with-same-period-last-year/m-p/1755813#M455297</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have this expresssion for summing sales in a given period. Im trying to build an expression summing sales in the same From/To date period last year, but it doesnt seem to work out.&lt;/P&gt;&lt;P&gt;This year:&lt;/P&gt;&lt;P&gt;Sum( if( Date &amp;gt;= vKampFromDate AND Date &amp;lt;= vKampToDate, Sales))&lt;/P&gt;&lt;P&gt;Last year:&lt;/P&gt;&lt;P&gt;??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 10:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-FromDate-ToDate-with-same-period-last-year/m-p/1755813#M455297</guid>
      <dc:creator>Selgum</dc:creator>
      <dc:date>2020-10-26T10:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing FromDate-ToDate with same period last year</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-FromDate-ToDate-with-same-period-last-year/m-p/1755830#M455298</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/86730"&gt;@Selgum&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;try like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum( if( Date &amp;gt;= AddYears(vKampFromDate,-1) AND Date &amp;lt;= Addyears(vKampToDate,-1), Sales))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Try with set analysis which is faster.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum({&amp;lt;Date ={"&amp;gt;= $(=Date(AddYears(vKampFromDate,-1),'YourDateFormat')) &amp;lt;= $(=Date(Addyears(vKampToDate,-1),'YourDateFormat'))"}&amp;gt;} Sales))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 11:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-FromDate-ToDate-with-same-period-last-year/m-p/1755830#M455298</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-10-26T11:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing FromDate-ToDate with same period last year</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-FromDate-ToDate-with-same-period-last-year/m-p/1755842#M455299</link>
      <description>&lt;P&gt;Thanks for your quick reply. But either or, seem to do the trick&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 11:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-FromDate-ToDate-with-same-period-last-year/m-p/1755842#M455299</guid>
      <dc:creator>Selgum</dc:creator>
      <dc:date>2020-10-26T11:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing FromDate-ToDate with same period last year</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-FromDate-ToDate-with-same-period-last-year/m-p/1758648#M455300</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/86730"&gt;@Selgum&lt;/a&gt;&amp;nbsp;&amp;nbsp;Likely going to need to attach a sample QVW in this case, so folks can see the data model etc. in order to be sure to get you the correct solution on this one.&amp;nbsp; If you can attach that, use the&amp;nbsp;@symbol to flag Mayil, as that will ensure he gets notification you posted things.&amp;nbsp; Sorry I do not have anything better to offer.&amp;nbsp; You can check around the Design Blog area to see if you can find something there:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 21:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-FromDate-ToDate-with-same-period-last-year/m-p/1758648#M455300</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-11-04T21:14:18Z</dc:date>
    </item>
  </channel>
</rss>

