<?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 Current Years Current Month Vs Last Year Same Month Data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354142#M131421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for current year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Year={$(=Max(Year))},Month={$(=max(fis_period_id))}&amp;gt;} [total_sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Previous Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Year={$(=Max(Year)-1)},Month={$(=max(fis_period_id))}&amp;gt;} [total_sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2012 08:19:37 GMT</pubDate>
    <dc:creator>SunilChauhan</dc:creator>
    <dc:date>2012-04-17T08:19:37Z</dc:date>
    <item>
      <title>Current Years Current Month Vs Last Year Same Month Data</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354134#M131413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need to display data in Guage chart &lt;/P&gt;Current Years Current Month Vs Last Year Same Month Data.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2012 Jan Data Vs 2011 Jan Data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to acheive this pls suggest me an idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 04:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354134#M131413</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-17T04:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Current Years Current Month Vs Last Year Same Month Data</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354135#M131414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Current Year and Current Month Exp: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year={$(=Max(Year))},Month={ "&amp;lt;=$(max({&amp;lt;Year={$(=Max(Year))}&amp;gt;} Month))&amp;gt;$(Max({&amp;lt;Year={$(=Max(Year))}&amp;gt;}Month)-1)"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿Last Year and Current Month Exp:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year={$(=Max(Year-1))},Month={"&amp;lt;=$(Max({&amp;lt;Year={$(=Max(Year))}&amp;gt;}Month))&amp;gt;$(Max({&amp;lt;Year={$(Max(Year))}&amp;gt;}Month)-1)"}&amp;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;Venkat Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 05:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354135#M131414</guid>
      <dc:creator />
      <dc:date>2012-04-17T05:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Current Years Current Month Vs Last Year Same Month Data</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354136#M131415</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;just use this expression and take month as dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Current year: =Sum({$&amp;lt;Year={$(=Max(Year))}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;For last Year:-=&amp;nbsp; =Sum({$&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the atttached file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards :&lt;/P&gt;&lt;P&gt;Arun Goel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 05:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354136#M131415</guid>
      <dc:creator />
      <dc:date>2012-04-17T05:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Current Years Current Month Vs Last Year Same Month Data</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354137#M131416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Last one is for bar chart,&lt;/P&gt;&lt;P&gt;for gauge chart use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For current year-month=Sum({$&amp;lt;Year={$(=Max(Year))}, Mon={$(=Month(Today()))}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;For last Year's same month=Sum({$&amp;lt;Year={$(=Max(Year)-1)}, Mon={$(=Month(Today()))}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to attached file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enjoy!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Arun Goel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 05:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354137#M131416</guid>
      <dc:creator />
      <dc:date>2012-04-17T05:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Current Years Current Month Vs Last Year Same Month Data</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354138#M131417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion &lt;/P&gt;&lt;P&gt;Current years Current month script works fine &lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year={$(=Max(Year))}, Mon={$(=Month(Today()))}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but last year same month not working.&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year={$(=Max(Year-1))}, Mon={$(=Month(Today()))}&amp;gt;}Sales)... its returing consolidated of all the values for last year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need last years same month data ... &lt;/P&gt;&lt;P&gt;Example :&amp;nbsp;&amp;nbsp; 2012 Jan Data Vs 2011 Jan data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply....&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 06:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354138#M131417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-17T06:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Current Years Current Month Vs Last Year Same Month Data</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354139#M131418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try moving the closing bracket that's after Year-1 two positions to the left:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year={$(=Max(Year&lt;STRONG&gt;)-1)&lt;/STRONG&gt;}, Mon={$(=Month(Today()))}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want the max(year) minus one, which is the previous year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 07:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354139#M131418</guid>
      <dc:creator />
      <dc:date>2012-04-17T07:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Current Years Current Month Vs Last Year Same Month Data</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354140#M131419</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope the attached file will be helpful for you&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;&lt;/P&gt;&lt;P&gt;Ashok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 07:46:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354140#M131419</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-17T07:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Current Years Current Month Vs Last Year Same Month Data</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354141#M131420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think i cannnot use today function , bcoz the latest data in our file is 2012 jan data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i need to compare 2012 Jan data and 2011 Jan data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Ashok , ur attached file gives an idea but i cannot use today function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 08:17:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354141#M131420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-17T08:17:17Z</dc:date>
    </item>
    <item>
      <title>Current Years Current Month Vs Last Year Same Month Data</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354142#M131421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for current year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Year={$(=Max(Year))},Month={$(=max(fis_period_id))}&amp;gt;} [total_sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Previous Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Year={$(=Max(Year)-1)},Month={$(=max(fis_period_id))}&amp;gt;} [total_sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 08:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354142#M131421</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-04-17T08:19:37Z</dc:date>
    </item>
    <item>
      <title>Current Years Current Month Vs Last Year Same Month Data</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354143#M131422</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Then you can create a variable and set the date (jan 2012) like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; variable name = makedate(max(Year(Yourdatefield)),Max(Month(Yourdatefield)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Then apply this variable instead of the today() in that attached expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 08:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354143#M131422</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-17T08:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Current Years Current Month Vs Last Year Same Month Data</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354144#M131423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if we want to show&amp;nbsp; the data for the year before the last year? What expression should we write?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 21:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Years-Current-Month-Vs-Last-Year-Same-Month-Data/m-p/354144#M131423</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-07T21:01:25Z</dc:date>
    </item>
  </channel>
</rss>

