<?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 Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetSelectedcount-and-Set-Analysis/m-p/45576#M768900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's probably slow because with this kind of expression you are calculating both results every time. See &lt;A href="http://qlikviewcookbook.com/2014/12/how-not-to-choose-an-expression/" title="http://qlikviewcookbook.com/2014/12/how-not-to-choose-an-expression/"&gt;How Not to Choose an Expression | Qlikview Cookbook &lt;/A&gt;‌ for an explanation and solutions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Jun 2018 18:48:06 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2018-06-03T18:48:06Z</dc:date>
    <item>
      <title>GetSelectedcount and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedcount-and-Set-Analysis/m-p/45575#M768899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi! &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have the expression:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF(GetSelectedCount(date)=0,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;consecutive= { $(=MAX(consecutive)-1)} &amp;gt;} field1),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Sum(field1))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt; )&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have dates, and the rule is:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if there is no one selected, sum field1 by the max date&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if there one or more than one date selected, sum field1 by that dates.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The code ots ok with the rule, but, its slos, and i think if I can do it all in set analysis will be faster than now.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedcount-and-Set-Analysis/m-p/45575#M768899</guid>
      <dc:creator>juan_patrick</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelectedcount and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedcount-and-Set-Analysis/m-p/45576#M768900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's probably slow because with this kind of expression you are calculating both results every time. See &lt;A href="http://qlikviewcookbook.com/2014/12/how-not-to-choose-an-expression/" title="http://qlikviewcookbook.com/2014/12/how-not-to-choose-an-expression/"&gt;How Not to Choose an Expression | Qlikview Cookbook &lt;/A&gt;‌ for an explanation and solutions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2018 18:48:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedcount-and-Set-Analysis/m-p/45576#M768900</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-06-03T18:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelectedcount and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedcount-and-Set-Analysis/m-p/45577#M768901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's better you use two expressions and put enable condition like &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;GetSelectedCount(date)=0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;It will be faster.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2018 09:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedcount-and-Set-Analysis/m-p/45577#M768901</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-06-04T09:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelectedcount and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedcount-and-Set-Analysis/m-p/45578#M768902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the answers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have solved it! But i didnt say thats it was in qlik sense....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(date) = 0, '$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;consecutive&lt;/SPAN&gt;))', concat(distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;consecutive&lt;/SPAN&gt;,','))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the expression I call it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;consecutive&lt;/SPAN&gt;= {$(=myvar)} &amp;gt;} field1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its SO MUCH FASTER!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everybody!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2018 12:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedcount-and-Set-Analysis/m-p/45578#M768902</guid>
      <dc:creator>juan_patrick</dc:creator>
      <dc:date>2018-06-04T12:57:34Z</dc:date>
    </item>
  </channel>
</rss>

