<?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: GetCurrentField() as variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetCurrentField-as-variable/m-p/1158784#M628215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to learn the Field Functions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Aug 2016 21:11:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-08-23T21:11:07Z</dc:date>
    <item>
      <title>GetCurrentField() as variable</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-as-variable/m-p/1158780#M628211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to put an expression into a variable, but I encounter problems with one specific expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;IF(GETPOSSIBLECOUNT($(=GETCURRENTFIELD(GROUPFIELD)))&amp;gt;4,1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression works this way when I use it literally in the expression box. But when I try to put in a variable in the script, I don't get a result. The problem is in the GETCURRENTFIELD() - when I type instead one of the possible fields, the expression is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any solution for this? Or do I just have to use the expression instead of a variable for this calculation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 15:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-as-variable/m-p/1158780#M628211</guid>
      <dc:creator />
      <dc:date>2016-08-23T15:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentField() as variable</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-as-variable/m-p/1158781#M628212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be trigger the value of GetCurrentField into a varialble and use the variable instead of the function itself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 15:39:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-as-variable/m-p/1158781#M628212</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-23T15:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentField() as variable</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-as-variable/m-p/1158782#M628213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have checked, its working fine...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 16:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-as-variable/m-p/1158782#M628213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-23T16:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentField() as variable</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-as-variable/m-p/1158783#M628214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried to put the GetCurrentField into a variable, but couldn't use it in a next variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have found the solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SET vCurrentField='If((GetPossibleCount('&amp;amp;GetCurrentField(GROUP)&amp;amp;'))&amp;gt;4,1,0)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the expression box, I need to use this variable with the Dollar Sign Expansion:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;=$(=$(vCurrentField))&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;Maybe not the best solution, but it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 16:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-as-variable/m-p/1158783#M628214</guid>
      <dc:creator />
      <dc:date>2016-08-23T16:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentField() as variable</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-as-variable/m-p/1158784#M628215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to learn the Field Functions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 21:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-as-variable/m-p/1158784#M628215</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-23T21:11:07Z</dc:date>
    </item>
  </channel>
</rss>

