<?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: Set Analysis with embeded functions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-embeded-functions/m-p/1199453#M22688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's wrong with using &lt;EM&gt;Max(Calendar_Year_Nbr)&lt;/EM&gt; to get a single year value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2016 05:02:40 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2016-10-18T05:02:40Z</dc:date>
    <item>
      <title>Set Analysis with embeded functions</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-embeded-functions/m-p/1199448#M22683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Guys,&lt;BR /&gt; I'm new to Qlik Sense and have a question regarding Set Analysis using some embedded function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use&amp;nbsp; some embedded functions to get the latest Calendar Year, from my Filter Pane as so:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SubField(GetFieldSelections([Calendar_Year_Nbr],',',GetSelectedCount([Calendar_Year_Nbr])),',',GetSelectedCount([Calendar_Year_Nbr]))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I embed this formula in a table it returns the correct result (Single Year of: 2016) based on my selection criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As in the screenshot below:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;IMG alt="table_Selection.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140767_table_Selection.JPG" style="width: 621px; height: 215px;" /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I embed the formula as part of a Set Analysis in a KPI it still returns results from multiple years (2015,2016)&lt;BR /&gt;Here is my Set Analysis formula:&lt;BR /&gt;&lt;EM&gt;count( distinct {$&amp;lt; Calendar_Year_Nbr = {"=$(= SubField(GetFieldSelections([Calendar_Year_Nbr],',',GetSelectedCount([Calendar_Year_Nbr])),',',GetSelectedCount([Calendar_Year_Nbr])))"}&amp;gt;} Dim_Case_DEX_Key)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;Here is the a screenshot of the KPIs with the calculated KPI from above. (highlighted in yellow):&lt;EM&gt;&lt;IMG alt="KPI results.JPG" class="jive-image image-2" src="/legacyfs/online/140804_KPI results.JPG" style="width: 620px; height: 322px;" /&gt;&lt;BR /&gt;&lt;/EM&gt;As you can see it still contains the aggregated result of 2015,2016 rather then just 2016.&lt;/P&gt;&lt;P&gt;Its should give the same result as the KPI&amp;nbsp; &lt;STRONG&gt;"Hardcoded 2016&lt;/STRONG&gt;" on the left &lt;STRONG&gt;1.49M&lt;/STRONG&gt;&lt;BR /&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Anto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 01:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-embeded-functions/m-p/1199448#M22683</guid>
      <dc:creator />
      <dc:date>2016-10-17T01:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with embeded functions</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-embeded-functions/m-p/1199449#M22684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be it is still a text field. Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {$&amp;lt; Calendar_Year_Nbr = {"=$(=&lt;SPAN style="color: #ff0000;"&gt;Num#(&lt;/SPAN&gt;SubField(GetFieldSelections([Calendar_Year_Nbr], ',', GetSelectedCount([Calendar_Year_Nbr])), ',', GetSelectedCount([Calendar_Year_Nbr]))&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;)"}&amp;gt;} Dim_Case_DEX_Key)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 15:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-embeded-functions/m-p/1199449#M22684</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-17T15:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with embeded functions</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-embeded-functions/m-p/1199450#M22685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sunny,&lt;/P&gt;&lt;P&gt;Thanks for this but it didn't seem to make a difference still gives me the aggregated results, if more than one year is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Anto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 22:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-embeded-functions/m-p/1199450#M22685</guid>
      <dc:creator />
      <dc:date>2016-10-17T22:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with embeded functions</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-embeded-functions/m-p/1199451#M22686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would it be possible for you to share a sample to see the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 02:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-embeded-functions/m-p/1199451#M22686</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-18T02:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with embeded functions</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-embeded-functions/m-p/1199452#M22687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You won't have access to my Enterprise data source and file is saved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on Qlik Sense Enterprise server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want me to replicate this solution on Qlik desktop,&lt;/P&gt;&lt;P&gt;with just some dummy data ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Anto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 03:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-embeded-functions/m-p/1199452#M22687</guid>
      <dc:creator />
      <dc:date>2016-10-18T03:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with embeded functions</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-embeded-functions/m-p/1199453#M22688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's wrong with using &lt;EM&gt;Max(Calendar_Year_Nbr)&lt;/EM&gt; to get a single year value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 05:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-embeded-functions/m-p/1199453#M22688</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-10-18T05:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with embeded functions</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-embeded-functions/m-p/1199454#M22689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jonathan,&lt;BR /&gt;Tried that also gives me an aggregated result , also don't think it takes&lt;/P&gt;&lt;P&gt;into account the dynamic values I've selected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 05:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-embeded-functions/m-p/1199454#M22689</guid>
      <dc:creator />
      <dc:date>2016-10-18T05:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with embeded functions</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-embeded-functions/m-p/1199455#M22690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dummy data sample would be enough if what &lt;A href="https://community.qlik.com/people/jontydkpi"&gt;jontydkpi&lt;/A&gt;‌ has provided doesn't work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 09:39:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-embeded-functions/m-p/1199455#M22690</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-18T09:39:50Z</dc:date>
    </item>
  </channel>
</rss>

