<?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: Comparing 2 yrs of data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983906#M958673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Barkley,&lt;/P&gt;&lt;P&gt;We are not using Master calender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Oct 2015 20:35:26 GMT</pubDate>
    <dc:creator>chinnu123</dc:creator>
    <dc:date>2015-10-28T20:35:26Z</dc:date>
    <item>
      <title>Comparing 2 yrs of data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983904#M958671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a help of syntax which i am facing problem displaying current month and previous month&lt;/P&gt;&lt;P&gt;My issue is My current month is October then i need to get&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Current Year-from Nov 2014 to Oct 2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Previous Year-From Nov 2013 to Oct 2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 20:17:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983904#M958671</guid>
      <dc:creator>chinnu123</dc:creator>
      <dc:date>2015-10-28T20:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 yrs of data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983905#M958672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chinnu,&lt;/P&gt;&lt;P&gt;Are you using a master calendar in your application?&amp;nbsp; If so, you might try adding a flag for rolling 12 months and the rolling 12 prior to that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( DateField &amp;gt; addmonths(Today(),-12) and DateField &amp;lt;= Today(),1)&amp;nbsp; AS _R12,&lt;/P&gt;&lt;P&gt;If( DateField &amp;gt; addmonths(Today(),-24) and DateField &amp;lt;= addmonths(Today(),-12),1) AS _R13_24&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then use set analysis in your expressions SUM({&amp;lt;_R12={1}&amp;gt;}Sales).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-cb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 20:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983905#M958672</guid>
      <dc:creator>chancekbarkley</dc:creator>
      <dc:date>2015-10-28T20:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 yrs of data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983906#M958673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Barkley,&lt;/P&gt;&lt;P&gt;We are not using Master calender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 20:35:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983906#M958673</guid>
      <dc:creator>chinnu123</dc:creator>
      <dc:date>2015-10-28T20:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 yrs of data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983907#M958674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cleaned the logic up a bit - just replace "DateField" in the script below with date in your model and put it in your load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( DateField &amp;gt; addmonths(Today(),-12) and DateField &amp;lt;= Today(),1)&amp;nbsp; AS _R12,&lt;/P&gt;&lt;P&gt;If( DateField &amp;gt; addmonths(Today(),-24) and DateField &amp;lt;= addmonths(Today(),-12),1) as _R13_24 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't work, post the app(if you can) and I'll have a look.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 20:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983907#M958674</guid>
      <dc:creator>chancekbarkley</dc:creator>
      <dc:date>2015-10-28T20:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 yrs of data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983908#M958675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for some reason I am not able to see what Barkley wrote, but you should use a master calendar and then use set analysis to compare&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4247"&gt;QlikView App: Dates, Date Ranges and Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2802"&gt;The Master Calendar&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 20:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983908#M958675</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-10-28T20:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 yrs of data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983909#M958676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same with me Ramon.&lt;/P&gt;&lt;P&gt;Chinnu, for previous year try this expression.&lt;/P&gt;&lt;P&gt;=AddMonths(monthstart(today()),-11) gives you November 1st of 2014 &amp;amp; change same to -23 which will give you from October 1st 2013. use that date in if clause and use it in calc. dimension to get your desired result.&lt;/P&gt;&lt;P&gt;But as Ramon told, use master calendar if you dont want to jump thru all these hoops. thats the best approach to solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Brad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 20:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983909#M958676</guid>
      <dc:creator />
      <dc:date>2015-10-28T20:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 yrs of data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983910#M958677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi bharadwaaj,&lt;/P&gt;&lt;P&gt;I am not using master calender&lt;/P&gt;&lt;P&gt;I am using below expressions&amp;nbsp; can you tell me any corrections on below expressions&lt;/P&gt;&lt;P&gt;For current month-&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;Month={'&amp;gt;=$(=DATE(AddMonths(Today() , - 11),'MM-YYYY' ))'}&amp;gt;}Incidents)&lt;/P&gt;&lt;P&gt;For previous month&lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;Month={$(=max(Month-22)}&amp;gt;}Incidents)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 21:31:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983910#M958677</guid>
      <dc:creator>chinnu123</dc:creator>
      <dc:date>2015-10-28T21:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 yrs of data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983911#M958678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Barkley,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found one of the expression from community member SWEUHL &lt;SPAN style="font-size: 10pt; line-height: 1.5em; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;and got the solution. i am also posting the expression which will be helpful for someone who may get this kinda issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=count({&amp;lt;[Employee ID] = p({&amp;lt;[Course Name] = {Course1}&amp;gt;}) * p({&amp;lt;[Course Name] = {Course2}&amp;gt;}) &amp;gt;} distinct [Employee ID])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Chinnu&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 22:07:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983911#M958678</guid>
      <dc:creator>chinnu123</dc:creator>
      <dc:date>2015-10-28T22:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 yrs of data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983912#M958679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Barkley for your precious time &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 22:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-yrs-of-data/m-p/983912#M958679</guid>
      <dc:creator>chinnu123</dc:creator>
      <dc:date>2015-10-28T22:08:24Z</dc:date>
    </item>
  </channel>
</rss>

