<?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: QLIK SENSE: Get Current Selected Field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/QLIK-SENSE-Get-Current-Selected-Field/m-p/755656#M10717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello UG -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this example - attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14231699303439550" jivemacro_uid="_14231699303439550"&gt;
&lt;P&gt;If(getselectedcount(Year)&amp;lt;&amp;gt;1, Sum({&amp;lt;Year={"$(=max( Year ))"}&amp;gt;} Sales ),&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Year={"$(=getfieldselections( Year ))"}&amp;gt;} Sales ))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example - I was just trying to simulated the selection for This Year for Last&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However - there may be a better way to achieve this, what is your use case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark the appropriate replies as helpful / correct so our team and other members know that your question(s) has been answered to your satisfaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mike Tarallo&lt;/P&gt;&lt;P&gt;Qlik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2015 20:59:21 GMT</pubDate>
    <dc:creator>Michael_Tarallo</dc:creator>
    <dc:date>2015-02-05T20:59:21Z</dc:date>
    <item>
      <title>QLIK SENSE: Get Current Selected Field</title>
      <link>https://community.qlik.com/t5/App-Development/QLIK-SENSE-Get-Current-Selected-Field/m-p/755655#M10716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;Any update on this? Is there a way to get the current selected field in qlik sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 20:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QLIK-SENSE-Get-Current-Selected-Field/m-p/755655#M10716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-05T20:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: QLIK SENSE: Get Current Selected Field</title>
      <link>https://community.qlik.com/t5/App-Development/QLIK-SENSE-Get-Current-Selected-Field/m-p/755656#M10717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello UG -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this example - attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14231699303439550" jivemacro_uid="_14231699303439550"&gt;
&lt;P&gt;If(getselectedcount(Year)&amp;lt;&amp;gt;1, Sum({&amp;lt;Year={"$(=max( Year ))"}&amp;gt;} Sales ),&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Year={"$(=getfieldselections( Year ))"}&amp;gt;} Sales ))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example - I was just trying to simulated the selection for This Year for Last&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However - there may be a better way to achieve this, what is your use case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark the appropriate replies as helpful / correct so our team and other members know that your question(s) has been answered to your satisfaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mike Tarallo&lt;/P&gt;&lt;P&gt;Qlik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 20:59:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QLIK-SENSE-Get-Current-Selected-Field/m-p/755656#M10717</guid>
      <dc:creator>Michael_Tarallo</dc:creator>
      <dc:date>2015-02-05T20:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: QLIK SENSE: Get Current Selected Field</title>
      <link>https://community.qlik.com/t5/App-Development/QLIK-SENSE-Get-Current-Selected-Field/m-p/755657#M10718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been struggling with the same problem because I don't like long nested ifs. And finally I used function GetObjectDimension().&lt;/P&gt;&lt;P&gt;Tomasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 14:09:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QLIK-SENSE-Get-Current-Selected-Field/m-p/755657#M10718</guid>
      <dc:creator>tomasz_tru</dc:creator>
      <dc:date>2018-01-17T14:09:55Z</dc:date>
    </item>
  </channel>
</rss>

