<?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 Set Modifiers Max year ,Prev Year with selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Modifiers-Max-year-Prev-Year-with-selections/m-p/1374755#M419746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have a line chart where I want to show the trendline between the max year &lt;STRONG&gt;selected&lt;/STRONG&gt; and the previous year of the sales for the products A,B,C with the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum({$*&amp;lt;[Product]={'A','B','C'},[Year]={$(=Max(&lt;SPAN style="font-size: 13.3333px;"&gt;Year&lt;/SPAN&gt;])),$(=Max([&lt;SPAN style="font-size: 13.3333px;"&gt;Year&lt;/SPAN&gt;])-1)}&amp;gt;} sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that if I &lt;STRONG&gt;select&lt;/STRONG&gt; product A and year=2017. I want only to see the trendline for that specific product that's why I've included &lt;SPAN style="font-size: 13.3333px;"&gt;$* before the condition but at the same time, with this set modifier , the max year selected (2017) appears but not the &lt;STRONG&gt;previous year (2016).&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please give me any advice about how I could show the product selected and the max year selected + previous year?&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>Sun, 01 Oct 2017 12:59:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-01T12:59:25Z</dc:date>
    <item>
      <title>Set Modifiers Max year ,Prev Year with selections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Modifiers-Max-year-Prev-Year-with-selections/m-p/1374755#M419746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have a line chart where I want to show the trendline between the max year &lt;STRONG&gt;selected&lt;/STRONG&gt; and the previous year of the sales for the products A,B,C with the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum({$*&amp;lt;[Product]={'A','B','C'},[Year]={$(=Max(&lt;SPAN style="font-size: 13.3333px;"&gt;Year&lt;/SPAN&gt;])),$(=Max([&lt;SPAN style="font-size: 13.3333px;"&gt;Year&lt;/SPAN&gt;])-1)}&amp;gt;} sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that if I &lt;STRONG&gt;select&lt;/STRONG&gt; product A and year=2017. I want only to see the trendline for that specific product that's why I've included &lt;SPAN style="font-size: 13.3333px;"&gt;$* before the condition but at the same time, with this set modifier , the max year selected (2017) appears but not the &lt;STRONG&gt;previous year (2016).&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please give me any advice about how I could show the product selected and the max year selected + previous year?&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>Sun, 01 Oct 2017 12:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Modifiers-Max-year-Prev-Year-with-selections/m-p/1374755#M419746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-01T12:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Modifiers Max year ,Prev Year with selections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Modifiers-Max-year-Prev-Year-with-selections/m-p/1374756#M419747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with and make changes in youri &lt;SPAN style="color: inherit; font-size: inherit;"&gt;expresssion&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: inherit; font-size: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: inherit; font-size: inherit;"&gt;//The expression works for max year to previous year &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: inherit; font-size: inherit;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;sum({$&amp;lt;[Product]={'A','B','C'}, [Year] = { &lt;STRONG&gt;"&amp;gt;=&lt;/STRONG&gt;$(=Max(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;])-1)&amp;nbsp; &lt;STRONG&gt;&amp;lt;=&lt;/STRONG&gt;$(=Max([&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;]))&lt;STRONG&gt;"&lt;/STRONG&gt; }&amp;gt;} sales)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2017 13:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Modifiers-Max-year-Prev-Year-with-selections/m-p/1374756#M419747</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-10-01T13:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set Modifiers Max year ,Prev Year with selections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Modifiers-Max-year-Prev-Year-with-selections/m-p/1374757#M419748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;sum({$&amp;lt;[Product] *= {'A','B','C'},[Year]={$(=Max(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Year&lt;/SPAN&gt;])),$(=Max([&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Year&lt;/SPAN&gt;])-1)}&amp;gt;} sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;so that the intersection applies to only the Product field modifier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2017 13:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Modifiers-Max-year-Prev-Year-with-selections/m-p/1374757#M419748</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-10-01T13:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Modifiers Max year ,Prev Year with selections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Modifiers-Max-year-Prev-Year-with-selections/m-p/1374758#M419749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Earlier was a typo&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try with and make changes in your expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: inherit; font-family: inherit; color: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: inherit; font-family: inherit; color: inherit;"&gt;//The expression works for max year to previous year&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: inherit; font-family: inherit; color: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;sum({$&amp;lt;[Product] *= {'A','B','C'}, [Year] = { &lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;"&amp;gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;$(=Max(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;)-1)&amp;nbsp; &lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;lt;=&lt;/STRONG&gt;&lt;/SPAN&gt;$(=Max(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;))&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/SPAN&gt; }&amp;gt;} sales)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2017 13:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Modifiers-Max-year-Prev-Year-with-selections/m-p/1374758#M419749</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-10-01T13:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Modifiers Max year ,Prev Year with selections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Modifiers-Max-year-Prev-Year-with-selections/m-p/1374759#M419750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks as always!! It worked &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2017 13:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Modifiers-Max-year-Prev-Year-with-selections/m-p/1374759#M419750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-01T13:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set Modifiers Max year ,Prev Year with selections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Modifiers-Max-year-Prev-Year-with-selections/m-p/1374760#M419751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot! what I needed as Stefan and you pointed out was the * before &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;*= {'A','B','C'}.&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: 13.3333px;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2017 13:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Modifiers-Max-year-Prev-Year-with-selections/m-p/1374760#M419751</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-01T13:44:12Z</dc:date>
    </item>
  </channel>
</rss>

