<?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 for year_month field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090387#M362792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try below expression for Prior Month. Make sure that YearMonth Field is not a string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year_Month= {"$(=date(addmonths(max(&lt;SPAN style="font-size: 13.3333px;"&gt;Year_Month&lt;/SPAN&gt;),-1),'YYYY-MM'))"}&amp;gt;})Amount&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Apr 2016 09:21:47 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2016-04-11T09:21:47Z</dc:date>
    <item>
      <title>Prior year for year_month field</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090386#M362791</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;sorry for this newbie question but somebody can explain me how to get the prior year (same month) value for the field Year-Month?&lt;/P&gt;&lt;P&gt;Example: 2016-02 I have to see in the Prior column the value for 2015-02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 08:57:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090386#M362791</guid>
      <dc:creator />
      <dc:date>2016-04-11T08:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Prior year for year_month field</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090387#M362792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try below expression for Prior Month. Make sure that YearMonth Field is not a string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year_Month= {"$(=date(addmonths(max(&lt;SPAN style="font-size: 13.3333px;"&gt;Year_Month&lt;/SPAN&gt;),-1),'YYYY-MM'))"}&amp;gt;})Amount&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 09:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090387#M362792</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-04-11T09:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Prior year for year_month field</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090388#M362793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this approach as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Vol_Avanz_GG:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date#(Year_Month, 'YYYY-MM') as Year_Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Qta&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INLINE [ &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Year_Month, Qta, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"2015-01", 20,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"2015-02", 210,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"2015-03", 2310,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"2016-01", 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"2016-02", 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"2016-03", 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"2014-02", 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Link:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Year_Month as ReportYearMonth,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Year_Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'CY' as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Vol_Avanz_GG;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate(Link)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Year_Month as ReportYearMonth,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; AddYears(Year_Month, -1) as Year_Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'PY' as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Vol_Avanz_GG;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG __jive_id="121171" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121171_Capture.PNG" style="height: auto;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions&lt;/P&gt;&lt;P&gt;1) &lt;STRONG&gt;=Sum({&amp;lt;Flag = {'CY'}&amp;gt;}Qta) &lt;/STRONG&gt;-&amp;gt; Current Year&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;=Sum({&amp;lt;Flag = {'PY'}&amp;gt;} Qta)&lt;/STRONG&gt; -&amp;gt; Prior Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data Model&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/121178_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 09:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090388#M362793</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-11T09:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Prior year for year_month field</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090389#M362794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kushal, but this set analysis will work just for one Year_Month, the 2016-02, that is in fact the Max(Year_Month) - 1 of my whole data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121196_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Actually I need that the calculation is made for all the rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Giovanni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 10:57:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090389#M362794</guid>
      <dc:creator />
      <dc:date>2016-04-11T10:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Prior year for year_month field</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090390#M362795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This soluction is working but... ii will perform 3 load of table &lt;STRONG&gt;Vol_Avanz_GG&lt;/STRONG&gt;, that is made of 4M+ of rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 10:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090390#M362795</guid>
      <dc:creator />
      <dc:date>2016-04-11T10:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Prior year for year_month field</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090391#M362796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp; don't find this to be an issue just because you won't be repeating the 4M+ rows, but just repeat the dates twice, which should not be too many rows of data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 13:04:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090391#M362796</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-11T13:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Prior year for year_month field</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090392#M362797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, your solution is working but i want see also the previous year when i select one year.&lt;/P&gt;&lt;P&gt;For example: if i select 2016-01, i want see in the table also 2015-01.&lt;/P&gt;&lt;P&gt;With your solution 2015-01 is zero.&lt;/P&gt;&lt;P&gt;can somebody help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 14:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090392#M362797</guid>
      <dc:creator />
      <dc:date>2016-04-11T14:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Prior year for year_month field</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090393#M362798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think that should happen, but let me test it out &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 15:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090393#M362798</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-11T15:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Prior year for year_month field</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090394#M362799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would not make selection in Year_Month field and instead make selection in ReportYearMonth field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121236_Capture.PNG" style="height: 94px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 15:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090394#M362799</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-11T15:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Prior year for year_month field</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090395#M362800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny, now your solution is working correctly &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, 12 Apr 2016 07:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-year-for-year-month-field/m-p/1090395#M362800</guid>
      <dc:creator />
      <dc:date>2016-04-12T07:46:58Z</dc:date>
    </item>
  </channel>
</rss>

