<?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 vs Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995945#M528838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GetCurrentField(.. ) is used to get the active Field in a dimension (drill down or cyclic) group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are looking for &lt;/P&gt;&lt;P&gt;=GetFieldSelections(FISCAL_YEAR)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Aug 2015 19:35:31 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-08-25T19:35:31Z</dc:date>
    <item>
      <title>GetCurrentField vs Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995944#M528837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;I have a chart that has two expressions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Calculate Total Spend to Date:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ACT_AMT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/1000 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Calculate current fiscal year spend:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FISCAL_YEAR_NUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=$(vCurFY))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ACT_AMT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/1000 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I have a new requirement that instead of hard coding the current fiscal year in the expression, the user shall be able to select the Fiscal Year (FY) from the list box (FISCAL_YEAR &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; FISCAL_YEAR_NUM) and the total displayed should show the total for only the selected year(s).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I thought I could use &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetCurrentField&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FISCAL_YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt; instead of &lt;SPAN style="font-size: 8pt;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FISCAL_YEAR_NUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=$(vCurFY))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} but that doesn't seem to work. I know that this is simple but my brain just isn't connecting the dots today.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sample Attached. For example, clicking on FY16 (the current FY) works but FY15 does not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Cassandra&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 19:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995944#M528837</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-08-25T19:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentField vs Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995945#M528838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GetCurrentField(.. ) is used to get the active Field in a dimension (drill down or cyclic) group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are looking for &lt;/P&gt;&lt;P&gt;=GetFieldSelections(FISCAL_YEAR)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 19:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995945#M528838</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-25T19:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentField vs Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995946#M528839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable p: =chr(39) &amp;amp; GetFieldSelections(FISCAL_YEAR)&amp;nbsp; &amp;amp; chr(39)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in chart:&amp;nbsp; =Sum({$&amp;lt;FISCAL_YEAR_NUM={$(p)}&amp;gt;}ACT_AMT)/1000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 19:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995946#M528839</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-08-25T19:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentField vs Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995947#M528840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but that does not appear to work in my app for some reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FISCAL_YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)}&amp;gt;}ACT_AMT)/1000 &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 19:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995947#M528840</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-08-25T19:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentField vs Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995948#M528841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That doesn't seem to be responding to my selection in FISCAL_YEAR list box&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 19:41:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995948#M528841</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-08-25T19:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentField vs Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995949#M528842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be more like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;FISCAL_YEAR={$(=GetFieldSelections(FISCAL_YEAR))}&amp;gt;}ACT_AMT)/1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But since QV considers selections in this field anyway for aggregations, the set expression wouldn't make much sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 19:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995949#M528842</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-25T19:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentField vs Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995950#M528843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have almost similar data in ACT_AMT for all the years for some reason.Please check that.&lt;/P&gt;&lt;P&gt;If the Data in ACT_AMT if different then definitely the chart responds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for some reason , the sum(ACT_AMT) is constant and list box values are also the same for all the years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96968_Capture1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 19:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995950#M528843</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-08-25T19:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentField vs Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995951#M528844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you may be having issues because of your data model.&amp;nbsp; The two tables in your model aren't linked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 19:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995951#M528844</guid>
      <dc:creator>mphekin12</dc:creator>
      <dc:date>2015-08-25T19:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentField vs Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995952#M528845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed in the text box to the left, there was not a value being returned.&amp;nbsp; I thing you may need to use &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FISCAL_YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know what impact if any that will/may have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever I selected the different fiscal years, the data did not change - is the data that is shown for FY16?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on the Help, it does not appear getcurrentfield is the correct function for what you are trying to achieve&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor1317"&gt;&lt;/A&gt;&lt;A name="GetCurrentField("&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;GetCurrentField(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;groupname&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;returns the name of the field currently active in the group named &lt;SPAN class="Italic"&gt;groupname&lt;/SPAN&gt;. &lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P class="Code"&gt;getcurrentfield( MyGroup ) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 20:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995952#M528845</guid>
      <dc:creator />
      <dc:date>2015-08-25T20:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentField vs Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995953#M528846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Sum({$&amp;lt;FISCAL_YEAR={$(=GetFieldSelections(FISCAL_YEAR))}&amp;gt;}ACT_AMT)/1000 seems to work. Are you saying it shouldn't?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only issue I see is that it is showing 0 if none of the FYs are selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 20:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995953#M528846</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-08-25T20:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentField vs Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995954#M528847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see that..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 20:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995954#M528847</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-08-25T20:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentField vs Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995955#M528848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how that happened. I reloaded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 20:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995955#M528848</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-08-25T20:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentField vs Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995956#M528849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing your 'FY Spend' expression to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ACT_AMT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/1000 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 20:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995956#M528849</guid>
      <dc:creator>mphekin12</dc:creator>
      <dc:date>2015-08-25T20:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: GetCurrentField vs Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995957#M528850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Duh! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 20:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetCurrentField-vs-Set-Analysis/m-p/995957#M528850</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-08-25T20:45:51Z</dc:date>
    </item>
  </channel>
</rss>

