<?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: Need help with dynamic Year calculation in set analysis. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082976#M925229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use &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;&lt;BR /&gt;&lt;/STRONG&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 = {"$(=Maxstring(Year))"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as expression in your straight table and leave the expression label empty, then hover with the mouse over the column header, what do you see?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Apr 2016 15:40:13 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-04-08T15:40:13Z</dc:date>
    <item>
      <title>Need help with dynamic Year calculation in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082970#M925223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have to make the below expression dynamic in set analysis.&lt;/P&gt;&lt;P&gt;I tried Year = max(Year) &amp;amp; 'OL' which is not right; Then I tried assigning max(Year) &amp;amp; 'OL' to variable and passed it to the Year field in the expression, it says 'Allocated memory exceeded'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;=sum({&amp;lt;Year = {'2016 OL'}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;NOTE&lt;/SPAN&gt;: I am using this in a bar chart and a straight table. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me with this ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&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/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082970#M925223</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with dynamic Year calculation in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082971#M925224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your year field includes Text? May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Year = {"$(=Max(Year) &amp;amp; ' OL')"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 15:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082971#M925224</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-08T15:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with dynamic Year calculation in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082972#M925225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do these year values look like? more than 1 value per year, with different chars at the end?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe like&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 = {"$(=Maxstring(Year))"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 15:31:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082972#M925225</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-08T15:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with dynamic Year calculation in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082973#M925226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This didn't work sunny;&lt;/P&gt;&lt;P&gt;Any other thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 15:37:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082973#M925226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-08T15:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with dynamic Year calculation in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082974#M925227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MaxString didn't work&lt;/P&gt;&lt;P&gt;I have appended text OL to the year 2016, so the year looks like 2016 OL&lt;/P&gt;&lt;P&gt;please let me know if you can think of something else&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 15:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082974#M925227</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-08T15:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with dynamic Year calculation in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082975#M925228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Stefan solution and see if that works, if not please consider sharing a sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 15:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082975#M925228</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-08T15:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with dynamic Year calculation in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082976#M925229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use &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;&lt;BR /&gt;&lt;/STRONG&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 = {"$(=Maxstring(Year))"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as expression in your straight table and leave the expression label empty, then hover with the mouse over the column header, what do you see?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 15:40:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082976#M925229</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-08T15:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with dynamic Year calculation in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082977#M925230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And could you elaborate on 'does not work', please. Expression returns zero? Wrong value &amp;lt;&amp;gt; zero?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to find the max year in your data ignoring selections:&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 = {"$(=Maxstring({1} Year))"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 15:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082977#M925230</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-08T15:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with dynamic Year calculation in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082978#M925231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you put =MaxString(Year) -&amp;gt; What do you see in a text box object? Do you see 2016 OL?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 15:42:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082978#M925231</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-08T15:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with dynamic Year calculation in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082979#M925232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just out of curiosity, would the two formulas produce the same result? &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 = {"$(=Maxstring(Year))"}&amp;gt;} Sales)&lt;/STRONG&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;&lt;BR /&gt;&lt;/STRONG&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;and &lt;/STRONG&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;&lt;BR /&gt;&lt;/STRONG&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;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;Year = {"$(=Maxstring({1} Year))"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/STRONG&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;&lt;BR /&gt;&lt;/STRONG&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;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 15:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082979#M925232</guid>
      <dc:creator />
      <dc:date>2016-04-08T15:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with dynamic Year calculation in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082980#M925233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without any selection they will produce the same result. With a selection, they may or may not produce a same result. Essentially, the second expression will always show the same result because it is restricted by using set analysis to now change based on selections (&lt;STRONG&gt;{1}&lt;/STRONG&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 15:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082980#M925233</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-08T15:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with dynamic Year calculation in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082981#M925234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=MaxString(Year) gives me 2016 OL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ANn Sum({&amp;lt;Year = {"$(=Maxstring({1} Year))"}&amp;gt;} Sales)&lt;/STRONG&gt; worked!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks much you 2!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 15:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082981#M925234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-08T15:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with dynamic Year calculation in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082982#M925235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny exactly the answer I was looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 15:55:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082982#M925235</guid>
      <dc:creator />
      <dc:date>2016-04-08T15:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with dynamic Year calculation in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082983#M925236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, I am glad it did. Please close the thread by marking Stefan's answer as correct (in addition to marking it as helpful) and any other helpful answers &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 15:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082983#M925236</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-08T15:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with dynamic Year calculation in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082984#M925237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If max year is always today's year, this should also work&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 = {'$(=Year(Today()) &amp;amp; ' OL')'}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 15:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082984#M925237</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-08T15:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with dynamic Year calculation in set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082985#M925238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really appreciate you for taking your time to doing as I asked &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 16:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-dynamic-Year-calculation-in-set-analysis/m-p/1082985#M925238</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-08T16:29:08Z</dc:date>
    </item>
  </channel>
</rss>

