<?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: Dynamic variable not working in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-variable-not-working-in-expression/m-p/1154113#M897268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tamil Nagaraj !!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression you have given works nicely !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2016 08:48:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-07-27T08:48:55Z</dc:date>
    <item>
      <title>Dynamic variable not working in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-variable-not-working-in-expression/m-p/1154109#M897264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a variable to get the maximum month of all the selected month.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Variable Name : Max Month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Definition : SubField(GetFieldSelections([Month],',',GetSelectedCount([Month])),',',GetSelectedCount([Month]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use it in a sum function but its not working. Looks like some syntax error.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thing I have tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Geo={"EUZ"} , Month={$(Max Month)}&amp;gt;} Actual)&amp;nbsp; --- Error&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Geo={"EUZ"} , Month={'$(Max Month)'}&amp;gt;} Actual)&amp;nbsp; ---- Giving 0 which is not the write answer&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Geo={"EUZ"} , Month={$(=Max Month)}&amp;gt;}Actual1) --- Again giving 0&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/Dynamic-variable-not-working-in-expression/m-p/1154109#M897264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variable not working in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-variable-not-working-in-expression/m-p/1154110#M897265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anvita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Try this expression&lt;/SPAN&gt;&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; font-size: 13px; line-height: 1.5em;"&gt;=sum({$&amp;lt;Geo={"EUZ"} , Month={"$(=$(Max Month))"}&amp;gt;}Actual1)&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: 13px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Add equal sign in the variable definition and try,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;SubField(GetFieldSelections([Month],',',GetSelectedCount([Month])),',',GetSelectedCount([Month]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 07:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-variable-not-working-in-expression/m-p/1154110#M897265</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-07-27T07:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variable not working in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-variable-not-working-in-expression/m-p/1154111#M897266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isn't Max (Getfieldselections ([Month])) working ? &lt;/P&gt;&lt;P&gt;May be even Max ([Month])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are you using subfield??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 07:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-variable-not-working-in-expression/m-p/1154111#M897266</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-07-27T07:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variable not working in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-variable-not-working-in-expression/m-p/1154112#M897267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;perhaps 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; font-size: 13px;"&gt;=sum({$&amp;lt;Geo={"EUZ"} , Month={'=$(=Max Month)'}&amp;gt;}Actual1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 07:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-variable-not-working-in-expression/m-p/1154112#M897267</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-07-27T07:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variable not working in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-variable-not-working-in-expression/m-p/1154113#M897268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tamil Nagaraj !!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression you have given works nicely !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 08:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-variable-not-working-in-expression/m-p/1154113#M897268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-27T08:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variable not working in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-variable-not-working-in-expression/m-p/1154114#M897269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for your inputs. Much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 08:50:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-variable-not-working-in-expression/m-p/1154114#M897269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-27T08:50:22Z</dc:date>
    </item>
  </channel>
</rss>

