<?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: See next three months, next year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1654862#M731088</link>
    <description>&lt;P&gt;try this expression:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Sum({&amp;lt;Month= {$(=subfield(AddMonths(Max(MDELIVERYDATE),0),'/',2))}&amp;gt;} MQTYORDERED)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;maybe you want to add the year to the expression&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Sum({&amp;lt;Month= {$(=subfield(AddMonths(Max(MDELIVERYDATE),0),'/',2))}, Year ={$(=subfield(AddMonths(Max(MDELIVERYDATE),0),'/',3))} &amp;gt;} MQTYORDERED)&lt;/LI-CODE&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;tim&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Dec 2019 07:17:07 GMT</pubDate>
    <dc:creator>zhadrakas</dc:creator>
    <dc:date>2019-12-06T07:17:07Z</dc:date>
    <item>
      <title>See next three months, next year</title>
      <link>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1653876#M731084</link>
      <description>&lt;P&gt;&lt;SPAN&gt;see next three months, example, I select December 2019 and show values ​​2020 January and February &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I use : &amp;nbsp;&amp;nbsp;=Sum({&amp;lt;Month ={$(=Max(Month + 1))}&amp;gt;} MQTYORDERED)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It only shows the year 2019, but does not advance to the next year January 2020&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table.jpg" style="width: 369px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24883i00E101E9DEDAA4F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="table.jpg" alt="table.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1653876#M731084</guid>
      <dc:creator>JesusAlv4</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: See next three months, next year</title>
      <link>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1653925#M731085</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;max(Month+1) will not work, cause from 12 it will go to 13 and not (as it should) to 1.&lt;/P&gt;&lt;P&gt;You should use something like this:&lt;/P&gt;&lt;P&gt;Date based:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Month(AddMonths(max(Date),-1)) //last Month
Month(AddMonths(max(Date),0)) //current Month
Month(AddMonths(max(Date),1)) //next Month
Month(AddMonths(max(Date),2)) //next next Month&lt;/LI-CODE&gt;&lt;P&gt;Note that you maybe need to add a condition for year in your set analysis if you have more years of data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;regards&lt;/P&gt;&lt;P&gt;tim&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 07:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1653925#M731085</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-12-04T07:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: See next three months, next year</title>
      <link>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1654799#M731087</link>
      <description>&lt;P&gt;&lt;SPAN&gt;It's my original qvw, I hope you can support because it doesn't work for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Month= {$(=AddMonths(Max(Date),0))}&amp;gt;} MQTYORDERED)&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="table00.jpg" style="width: 388px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25038i2FA5575EE8A34F22/image-size/large?v=v2&amp;amp;px=999" role="button" title="table00.jpg" alt="table00.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Add the sample&amp;nbsp;&lt;/SPAN&gt;original file qvw&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 22:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1654799#M731087</guid>
      <dc:creator>JesusAlv4</dc:creator>
      <dc:date>2019-12-05T22:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: See next three months, next year</title>
      <link>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1654862#M731088</link>
      <description>&lt;P&gt;try this expression:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Sum({&amp;lt;Month= {$(=subfield(AddMonths(Max(MDELIVERYDATE),0),'/',2))}&amp;gt;} MQTYORDERED)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;maybe you want to add the year to the expression&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Sum({&amp;lt;Month= {$(=subfield(AddMonths(Max(MDELIVERYDATE),0),'/',2))}, Year ={$(=subfield(AddMonths(Max(MDELIVERYDATE),0),'/',3))} &amp;gt;} MQTYORDERED)&lt;/LI-CODE&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;tim&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 07:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1654862#M731088</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-12-06T07:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: See next three months, next year</title>
      <link>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1656652#M731089</link>
      <description>&lt;P&gt;Jesus, did Tim's last post get you what you needed for your use case?&amp;nbsp; If so, do not forget to return to your post and use the Accept as Solution button on Tim's post to give him credit for the assistance and let other Community Members know that worked for the use case.&amp;nbsp; If you still have further questions, leave an update.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 16:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1656652#M731089</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-12-11T16:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: See next three months, next year</title>
      <link>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1656712#M731090</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;this might help you&lt;/P&gt;&lt;P&gt;You need to create a tilldate flag in script and add that flag in you set analysis script&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(datefield&amp;lt;=today(),1,0) as tilldateflag&amp;nbsp;&lt;/STRONG&gt;write this flag in script&lt;/P&gt;&lt;P&gt;Set Analysis script :&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sum(MonthYear={"$(=Date(Max({&amp;lt;tilldate={1}&amp;gt;}MonthYear),'MM-YYYY'))"}&amp;gt;}MQTYORDERED) //it will give you data for dec 2019&lt;/LI&gt;&lt;LI&gt;sum(MonthYear={"$(=Date(AddMonths(Max({&amp;lt;tilldate={1}&amp;gt;}MonthYear),'MM-YYYY'),1))"}&amp;gt;}MQTYORDERED) //it will give you data for Jan 2020&lt;/LI&gt;&lt;LI&gt;sum(MonthYear={"$(=Date(AddMonths(Max({&amp;lt;tilldate={1}&amp;gt;}MonthYear),'MM-YYYY'),2))"}&amp;gt;}MQTYORDERED) //it will give you data for Feb 2020&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have considered the fields that you have included in the app for reference.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 18:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1656712#M731090</guid>
      <dc:creator>Prashant_Naik</dc:creator>
      <dc:date>2019-12-11T18:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: See next three months, next year</title>
      <link>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1656789#M731091</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Sorry, the sentence still does not do what I need, but I will try the solution that the user : Prashant&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 22:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1656789#M731091</guid>
      <dc:creator>JesusAlv4</dc:creator>
      <dc:date>2019-12-11T22:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: See next three months, next year</title>
      <link>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1683996#M731092</link>
      <description>&lt;P&gt;Hi Prashant,&lt;/P&gt;&lt;P&gt;I already made the code as you say, month year, creation of the flag, but I have no result.&lt;BR /&gt;the current month is correct, but the following months do not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was creating a "NumericDate" field to do the operation subtracting the Monthyear, but it doesn't work.&lt;/P&gt;&lt;P&gt;QVW file attachment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sales00.jpg" style="width: 822px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29925i73D4638DCD89F7E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="sales00.jpg" alt="sales00.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 00:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1683996#M731092</guid>
      <dc:creator>JesusAlv4</dc:creator>
      <dc:date>2020-03-12T00:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: See next three months, next year</title>
      <link>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1684018#M731093</link>
      <description>&lt;P&gt;Try expression like below:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;&lt;STRONG&gt;Year,Month,&lt;/STRONG&gt;MonthYear={"$(=Date(AddMonths(Max(MonthYear)&lt;STRONG&gt;, 1&lt;/STRONG&gt;), 'MMM-YY'))"}&amp;gt;}INVENTQTY)&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 06:32:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1684018#M731093</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-03-12T06:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: See next three months, next year</title>
      <link>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1684270#M731094</link>
      <description>&lt;P&gt;Hello Tresesco,&lt;/P&gt;&lt;P&gt;Thank you very much, its correct, I see results now .&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jesus&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sales01.jpg" style="width: 584px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29983i50BEA69E3B82C379/image-size/large?v=v2&amp;amp;px=999" role="button" title="sales01.jpg" alt="sales01.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 19:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/See-next-three-months-next-year/m-p/1684270#M731094</guid>
      <dc:creator>JesusAlv4</dc:creator>
      <dc:date>2020-03-12T19:14:54Z</dc:date>
    </item>
  </channel>
</rss>

