<?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: Summing by Max Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Summing-by-Max-Year/m-p/603621#M223044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to disregard the Year selections. Here are two ways &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;"&gt;Sum({&amp;lt;Year={$(=Max({1}Year))}&amp;gt;} RenewedCounter)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //disregarding all selections&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({&amp;lt;Year={$(=Max(Year)), Year=}&amp;gt;} RenewedCounter) // disregarding the current selection on Year Listbox.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Michael&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Feb 2014 09:09:29 GMT</pubDate>
    <dc:creator>agilos_mla</dc:creator>
    <dc:date>2014-02-04T09:09:29Z</dc:date>
    <item>
      <title>Summing by Max Year</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-by-Max-Year/m-p/603620#M223043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, new to click view and probably something really obvious using Set Analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use this formula &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year={2014}&amp;gt;} RenewedCounter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the required result, I.e. If I change a list box with Year in it, the graph always shows 2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I try and make the calculation dynamic using a Max(Year) function it doesn't work as I expect:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;} RenewedCounter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While the expression is valid, changing the list box changes the result to the maximum year selected. Ie if 2012 &amp;amp; 2013 are selected it shows 2013 results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want it to show 2014 no matter what year is selected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 09:03:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-by-Max-Year/m-p/603620#M223043</guid>
      <dc:creator />
      <dc:date>2014-02-04T09:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Summing by Max Year</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-by-Max-Year/m-p/603621#M223044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to disregard the Year selections. Here are two ways &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;"&gt;Sum({&amp;lt;Year={$(=Max({1}Year))}&amp;gt;} RenewedCounter)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //disregarding all selections&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({&amp;lt;Year={$(=Max(Year)), Year=}&amp;gt;} RenewedCounter) // disregarding the current selection on Year Listbox.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Michael&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 09:09:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-by-Max-Year/m-p/603621#M223044</guid>
      <dc:creator>agilos_mla</dc:creator>
      <dc:date>2014-02-04T09:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Summing by Max Year</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-by-Max-Year/m-p/603622#M223045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you have to add double quotes&lt;/P&gt;&lt;P&gt;try dis.&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;"&gt;Sum({&amp;lt;Year={"$(=Max(Year))"}&amp;gt;} RenewedCounter)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 09:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-by-Max-Year/m-p/603622#M223045</guid>
      <dc:creator>nilesh_gangurde</dc:creator>
      <dc:date>2014-02-04T09:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Summing by Max Year</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-by-Max-Year/m-p/603623#M223046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without selection you want to show max(year)&amp;nbsp; i mean 2014 selection right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create one variable like this&lt;/P&gt;&lt;P&gt;Vmaxyear= max(year(yourdatefield))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and write setanalysis like 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;"&gt;Sum({&amp;lt;Yourdatefield={$(Vmaxyear)}&amp;gt;} RenewedCounter)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;hope this will helps you&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 09:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-by-Max-Year/m-p/603623#M223046</guid>
      <dc:creator />
      <dc:date>2014-02-04T09:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Summing by Max Year</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-by-Max-Year/m-p/603624#M223047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this below piece of coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({1&amp;lt;Year = {$(=Max(Year))},Quarter = ,Month = &amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;RenewedCounter&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to replace $ to 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ - Mean Current selection&lt;/P&gt;&lt;P&gt;1 - Mean Regardless of selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raju &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 09:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-by-Max-Year/m-p/603624#M223047</guid>
      <dc:creator />
      <dc:date>2014-02-04T09:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Summing by Max Year</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-by-Max-Year/m-p/603625#M223048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this , it is very useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am now trying to get another graph to show just the last 10 days of data&lt;/P&gt;&lt;P&gt;My Date field is ReportDate.&amp;nbsp; The attached seems to bring through every day in 2014 and not just the last 10 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ideally I would like to remove the year part so when we are on the 2nd Jan 2015 it will show 8 days worth of December also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(=Max({1}Year))},ReportDate={"&amp;gt;=$(=ReportDate(Max(Reportdate)-10)&amp;lt;=$(=ReportDate(Max(ReportDate))))"}&amp;gt;}RenewedCounter)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 10:28:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-by-Max-Year/m-p/603625#M223048</guid>
      <dc:creator />
      <dc:date>2014-02-04T10:28:50Z</dc:date>
    </item>
  </channel>
</rss>

