<?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: GetSelectedCount and Alternative State in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397847#M148180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your problem will be solved in the QlikView 11.20 SR8.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/technicalbulletin/2014/07/07/qlikview-1120-service-release-8-beta-is-now-available"&gt;Qlikview 11.20 service release 8 beta is now available&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;New parameter added to the functions “GetSelectedCount()”, “GetFieldSelections()and“GetCurrentSelections()” to query other states than the main state. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;E.g. =GetFieldSelections(Quantity, ';', ,'StateA')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2014 18:38:19 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2014-07-08T18:38:19Z</dc:date>
    <item>
      <title>GetSelectedCount and Alternative State</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397840#M148173</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;Is it possible to use an Alternative State option for functions like GetSelectedCount()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to check the number of items selected for the field that has the Alternative State set for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will appreciate any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Vladimir &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 23:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397840#M148173</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2013-03-26T23:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelectedCount and Alternative State</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397841#M148174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try some thing like this =count({State name}field) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 07:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397841#M148174</guid>
      <dc:creator />
      <dc:date>2013-03-27T07:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelectedCount and Alternative State</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397842#M148175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no option for that.&lt;/P&gt;&lt;P&gt;Those functions acts based on the object state. If your using this in text object then that object state should be in that state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can vote up the idea her &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/ideas/http://community.qlik.com/ideas/2340" title="http://community.qlik.com/ideas/2340"&gt;http://community.qlik.com/ideas/2340&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 07:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397842#M148175</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-03-27T07:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelectedCount and Alternative State</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397843#M148176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I saw this idea in the "Suggestions" article (&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/ideas/http://community.qlik.com/ideas/2340" title="http://community.qlik.com/ideas/2340"&gt;http://community.qlik.com/ideas/2340&lt;/A&gt;). It works, but it's affecting performance of my application significanly. I have very unusual case, but it should work much faster with standard &lt;STRONG style="background-color: #ffffff; font-size: 1.1111em; color: #636363; font-family: Arial;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/326819#326819" style="font-size: 12px; color: #555555; text-decoration: initial;"&gt;GetSelectedCount &lt;/A&gt;&lt;/STRONG&gt;implementation...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vladimir &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 16:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397843#M148176</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2013-03-27T16:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelectedCount and Alternative State</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397844#M148177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did vote there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vladimir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 16:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397844#M148177</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2013-03-27T16:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelectedCount and Alternative State</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397845#M148178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there any way to get selected field value in alternative states? &lt;/P&gt;&lt;P&gt;something like getfieldselections([state1],field)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 16:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397845#M148178</guid>
      <dc:creator />
      <dc:date>2013-05-20T16:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelectedCount and Alternative State</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397846#M148179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a field in the default state that matches the one in the comparison state, you can count all values in the field from the default state and subtract a distinct count from the comparison state. If the value is less than zero, then something has been selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not pretty, but here is an example:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Count(distinct {[Compare1]} Field) - (GetSelectedCount(Field)+GetAlternativeCount(Field)) &amp;lt; 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 00:53:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397846#M148179</guid>
      <dc:creator>Lee_Matthews</dc:creator>
      <dc:date>2013-11-14T00:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelectedCount and Alternative State</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397847#M148180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your problem will be solved in the QlikView 11.20 SR8.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/technicalbulletin/2014/07/07/qlikview-1120-service-release-8-beta-is-now-available"&gt;Qlikview 11.20 service release 8 beta is now available&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;New parameter added to the functions “GetSelectedCount()”, “GetFieldSelections()and“GetCurrentSelections()” to query other states than the main state. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;E.g. =GetFieldSelections(Quantity, ';', ,'StateA')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 18:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397847#M148180</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2014-07-08T18:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelectedCount and Alternative State</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397848#M148181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vegar Lie Arntsen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for feedback!&lt;/P&gt;&lt;P&gt;Will test the new functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;VK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 23:08:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397848#M148181</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2014-07-08T23:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelectedCount and Alternative State</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397849#M148182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;In case it helps others... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's worth noting that I have also experienced appalling performance degradation on a complex application which also used the suggested workaround.&amp;nbsp; I tracked this degradation down to the use of this logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubStringCount('|'&amp;amp; Concat(DISTINCT {AdHoc} $1,'|')&amp;amp;'|', '|'&amp;amp; $2 &amp;amp;'|' )&amp;gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a large number of customisable tables which had expressions and dimensions that could be dynamically selected by users.&amp;nbsp; By removing this logic, and instead using a system field in the default state in conjunction with some logic that &lt;A href="https://community.qlik.com/qlik-users/2286"&gt;Rob Wunderlich&lt;/A&gt; had mentioned in a comment on another post (sorry - can't find the link now - I think it was on the sample app using bitand/bitor), the performance improved dramatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the new logic I am using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GetSelectedCount($1) AND max(match($1,$2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So whilst the SubStringCount work around did work to get values from an alternate state (pre 11.2 sr8), use it cautiously as it may have performance implications.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 08:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedCount-and-Alternative-State/m-p/397849#M148182</guid>
      <dc:creator />
      <dc:date>2014-08-15T08:46:28Z</dc:date>
    </item>
  </channel>
</rss>

