<?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: Rolling period vs previous year - selection issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-period-vs-previous-year-selection-issue/m-p/1320207#M834670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What could be easier? Do you have more fields where you don't want selections to impact then the fields which should impact? If that's true you can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;Year, Month,&amp;nbsp; MonthYear ={"&amp;gt;=$(=Date(addmonths(Min(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{1&amp;lt;Field1 = p(Field1), Field2 = p(Field2)&amp;gt;}&lt;/SPAN&gt;MonthYear), -12), 'MMMMM-YY'))&amp;lt;=$(=Date(addmonths(Max(MonthYear), -12),&amp;nbsp; 'MMMM-YY'))"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jun 2017 19:46:50 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-06-06T19:46:50Z</dc:date>
    <item>
      <title>Rolling period vs previous year - selection issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-period-vs-previous-year-selection-issue/m-p/1320204#M834667</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;I was hoping someome can help me with an issue I have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get the sum of sales in a pivot table for a period based on the selection made in the field MonthYear and I want to get the sum of sales in the same period in the previous year to compare it with. I all goes well until I make a selection in, for example, a particular brand. If I select MonthYear Jan-2017 till May-2017 but the brand is only first sold this year in Mar-2017, than the result in my pivot table shows the sum of sales of Mar-2017 till May-2017 vs. Mar-2016 till May-2016 (regardless any sales in Jan-2016 or Feb-2016).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression I use is for the current period =&lt;/P&gt;&lt;P&gt;Sum(Sales)&lt;/P&gt;&lt;P&gt;The expression I use is for the previous period =&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year, Month,&amp;nbsp; MonthYear ={"&amp;gt;=$(=Date(addmonths(Min(MonthYear), -12), 'MMMMM-YY'))&amp;lt;=$(=Date(addmonths(Max(MonthYear), -12),&amp;nbsp; 'MMMM-YY'))"}&amp;gt;}Sales)&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, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-period-vs-previous-year-selection-issue/m-p/1320204#M834667</guid>
      <dc:creator>jorgen_santberg</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling period vs previous year - selection issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-period-vs-previous-year-selection-issue/m-p/1320205#M834668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you interested in YTD for previous year? or would it be based on selection only? May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;Year, Month,&amp;nbsp; MonthYear ={"&amp;gt;=$(=Date(addmonths(Min(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;Brand&amp;gt;}&lt;/SPAN&gt;MonthYear), -12), 'MMMMM-YY'))&amp;lt;=$(=Date(addmonths(Max(MonthYear), -12),&amp;nbsp; 'MMMM-YY'))"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 15:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-period-vs-previous-year-selection-issue/m-p/1320205#M834668</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-06T15:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling period vs previous year - selection issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-period-vs-previous-year-selection-issue/m-p/1320206#M834669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That would have solved the issue if [Brand] was the only field to select, but it is not. It is also possible to select a productgroup, a specific article, a group of customers, unique customer, et cetera. I could just add all these fields to the expression as in:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;Year, Month,&amp;nbsp; MonthYear ={"&amp;gt;=$(=Date(addmonths(Min(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;Brand, Prodgroup, Article, Customergroup, CustomerID&amp;gt;}&lt;/SPAN&gt;MonthYear), -12), 'MMMMM-YY'))&amp;lt;=$(=Date(addmonths(Max(MonthYear), -12),&amp;nbsp; 'MMMM-YY'))"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;but I was hoping for an easier and more esthetic solution. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 19:44:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-period-vs-previous-year-selection-issue/m-p/1320206#M834669</guid>
      <dc:creator>jorgen_santberg</dc:creator>
      <dc:date>2017-06-06T19:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling period vs previous year - selection issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-period-vs-previous-year-selection-issue/m-p/1320207#M834670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What could be easier? Do you have more fields where you don't want selections to impact then the fields which should impact? If that's true you can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;Year, Month,&amp;nbsp; MonthYear ={"&amp;gt;=$(=Date(addmonths(Min(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{1&amp;lt;Field1 = p(Field1), Field2 = p(Field2)&amp;gt;}&lt;/SPAN&gt;MonthYear), -12), 'MMMMM-YY'))&amp;lt;=$(=Date(addmonths(Max(MonthYear), -12),&amp;nbsp; 'MMMM-YY'))"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 19:46:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-period-vs-previous-year-selection-issue/m-p/1320207#M834670</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-06T19:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling period vs previous year - selection issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-period-vs-previous-year-selection-issue/m-p/1320208#M834671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did the trick, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-period-vs-previous-year-selection-issue/m-p/1320208#M834671</guid>
      <dc:creator>jorgen_santberg</dc:creator>
      <dc:date>2017-06-06T20:16:13Z</dc:date>
    </item>
  </channel>
</rss>

