<?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: Getting max(year)-1 in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-max-year-1-in-set-analysis/m-p/1644101#M731722</link>
    <description>&lt;P&gt;I do not want to ignore my selection. If I select 2018 , 2017 data should be shown in the table. Max(fiscalyear) should be determined based on my selection.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2019 08:12:03 GMT</pubDate>
    <dc:creator>vicky_qv</dc:creator>
    <dc:date>2019-11-07T08:12:03Z</dc:date>
    <item>
      <title>Getting max(year)-1 in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-max-year-1-in-set-analysis/m-p/1644076#M731718</link>
      <description>&lt;P&gt;When I am using sum({&amp;lt;FiscalYear={"$(=max(FiscalYear)-1)"}&amp;gt;}Qty) and when no selection in FiscalYear field, My straight table is getting populated, but when I select any value in FiscalYear, I am getting nothing in table.&lt;/P&gt;&lt;P&gt;I wanted the above expression to work even when selection in the fiscalyear. e.g, if I select 2018, then 2017 should be assigned, for 2017, 2016 should be assigned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-max-year-1-in-set-analysis/m-p/1644076#M731718</guid>
      <dc:creator>vicky_qv</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max(year)-1 in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-max-year-1-in-set-analysis/m-p/1644080#M731719</link>
      <description>&lt;P&gt;You would probably need selection context remover set in max() as well, like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;FiscalYear={"$(=max( &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;{1}&lt;/FONT&gt;&lt;/STRONG&gt; FiscalYear)-1)"}&amp;gt;}Qty)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 07:11:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-max-year-1-in-set-analysis/m-p/1644080#M731719</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-11-07T07:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max(year)-1 in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-max-year-1-in-set-analysis/m-p/1644094#M731720</link>
      <description>&lt;P&gt;Hi - Currently it is displaying 2019 because of fiscal year -1. But when I select 2020, nothing shows in the table and when I select 2019, it's showing 2019 data not 2018(fiscal year -1).&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I have AGGR in expression like:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;FiscalYear={"$(=max(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FiscalYear)-1)"}&amp;gt;}aggr(sum(Qty),%Key)).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And if I use&amp;nbsp;&lt;SPAN&gt;sum({&amp;lt;FiscalYear={"$(=max(&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;{1}&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FiscalYear)-1)"}&amp;gt;}aggr(sum(Qty),%Key)), does this not ignore my selection in FiscalYear field?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 07:54:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-max-year-1-in-set-analysis/m-p/1644094#M731720</guid>
      <dc:creator>vicky_qv</dc:creator>
      <dc:date>2019-11-07T07:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max(year)-1 in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-max-year-1-in-set-analysis/m-p/1644095#M731721</link>
      <description>&lt;P&gt;No it doesn't, because you have aggr(), sum() that don't have set analysis to ignore selection.&lt;/P&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;sum({&amp;lt;FiscalYear={"$(=max(&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;{1}&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FiscalYear)-1)"}&amp;gt;}aggr( &lt;STRONG&gt;{&amp;lt;FiscalYear&amp;gt;}&lt;/STRONG&gt; sum(&lt;STRONG&gt;{&amp;lt;FiscalYear&amp;gt;}&lt;/STRONG&gt; Qty),%Key))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 07:59:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-max-year-1-in-set-analysis/m-p/1644095#M731721</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-11-07T07:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max(year)-1 in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-max-year-1-in-set-analysis/m-p/1644101#M731722</link>
      <description>&lt;P&gt;I do not want to ignore my selection. If I select 2018 , 2017 data should be shown in the table. Max(fiscalyear) should be determined based on my selection.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 08:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-max-year-1-in-set-analysis/m-p/1644101#M731722</guid>
      <dc:creator>vicky_qv</dc:creator>
      <dc:date>2019-11-07T08:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max(year)-1 in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-max-year-1-in-set-analysis/m-p/1644115#M731723</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;FiscalYear={"$(=max(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FiscalYear)-1)"}&amp;gt;}aggr(sum({&amp;lt;FiscalYear={"$(=max(&amp;nbsp;FiscalYear)-1)"}Qty),%Key)).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 08:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-max-year-1-in-set-analysis/m-p/1644115#M731723</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-11-07T08:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max(year)-1 in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-max-year-1-in-set-analysis/m-p/1644119#M731724</link>
      <description>&lt;P&gt;Could you share a sample app and explain expected put there?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 09:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-max-year-1-in-set-analysis/m-p/1644119#M731724</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-11-07T09:02:43Z</dc:date>
    </item>
  </channel>
</rss>

