<?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: I want to Add Max Year to My set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/I-want-to-Add-Max-Year-to-My-set-Analysis/m-p/1659729#M49459</link>
    <description>&lt;P&gt;You can not use Script Functions within the Set Analysis.&lt;/P&gt;&lt;P&gt;To be able to use the Maxfunction you will need to put it in a Variable:&lt;/P&gt;&lt;P&gt;e.g. vMaxYear=Max(Year)&lt;/P&gt;&lt;P&gt;then put the Variable in the Set Analysis:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date={$(vMaxYear)}&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;</description>
    <pubDate>Fri, 20 Dec 2019 11:46:34 GMT</pubDate>
    <dc:creator>H_Julian</dc:creator>
    <dc:date>2019-12-20T11:46:34Z</dc:date>
    <item>
      <title>I want to Add Max Year to My set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/I-want-to-Add-Max-Year-to-My-set-Analysis/m-p/1659383#M49430</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Coming into 2020 i Want to add in Max year to my Set analysis Function. At the Moment I only have 2019 data.&lt;/P&gt;&lt;P&gt;The Below Function gives me the Last 8 Weeks Of tasks. How do i add in Max year so when we step into 2020 It will display last 8 weeks Accordingly?&lt;/P&gt;&lt;P&gt;sum({&amp;lt;DailyTaskType = {'Counts'}, Week = {"&amp;gt;=$(=Max(Week)-8)&amp;lt;$(=Max(Week))"}&amp;gt;}EstimatedTaskTime*Tasks)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanking You in Advance.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 17:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/I-want-to-Add-Max-Year-to-My-set-Analysis/m-p/1659383#M49430</guid>
      <dc:creator>jamiemcc</dc:creator>
      <dc:date>2021-12-22T17:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: I want to Add Max Year to My set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/I-want-to-Add-Max-Year-to-My-set-Analysis/m-p/1659386#M49432</link>
      <description>&lt;P&gt;Perhaps this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;DailyTaskType = {'Counts'}, &lt;STRONG&gt;Year={"$(=Max(Year))"},&lt;/STRONG&gt; Week = {"&amp;gt;=$(=Max(Week)-8)&amp;lt;$(=Max(Week))"}&amp;gt;}EstimatedTaskTime*Tasks)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;DailyTaskType = {'Counts'}, Week = {"&amp;gt;=$(=Max(&lt;STRONG&gt;{&amp;lt;Year={"$(=Max(Year))"}&amp;gt;}&lt;/STRONG&gt; Week)-8)&amp;lt;$(=Max(&lt;STRONG&gt;{&amp;lt;Year={"$(=Max(Year))"}&amp;gt;}&lt;/STRONG&gt; Week))"}&amp;gt;}EstimatedTaskTime*Tasks)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 11:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/I-want-to-Add-Max-Year-to-My-set-Analysis/m-p/1659386#M49432</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-12-19T11:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: I want to Add Max Year to My set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/I-want-to-Add-Max-Year-to-My-set-Analysis/m-p/1659400#M49436</link>
      <description>&lt;P&gt;Does your week field contain information for the year? for example 201953, 201952 or it is just 53, 52, 51 etc?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 12:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/I-want-to-Add-Max-Year-to-My-set-Analysis/m-p/1659400#M49436</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-19T12:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: I want to Add Max Year to My set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/I-want-to-Add-Max-Year-to-My-set-Analysis/m-p/1659729#M49459</link>
      <description>&lt;P&gt;You can not use Script Functions within the Set Analysis.&lt;/P&gt;&lt;P&gt;To be able to use the Maxfunction you will need to put it in a Variable:&lt;/P&gt;&lt;P&gt;e.g. vMaxYear=Max(Year)&lt;/P&gt;&lt;P&gt;then put the Variable in the Set Analysis:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date={$(vMaxYear)}&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 11:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/I-want-to-Add-Max-Year-to-My-set-Analysis/m-p/1659729#M49459</guid>
      <dc:creator>H_Julian</dc:creator>
      <dc:date>2019-12-20T11:46:34Z</dc:date>
    </item>
  </channel>
</rss>

