<?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 Set analysis and Count Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432833#M430767</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My data set is this:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="287" style="border: 1px solid rgb(0, 0, 0); width: 190px; height: 200px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Gender&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Female&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Male&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Female&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Male&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Female&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Male&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;7&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Female&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Male&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Female&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Male&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a listbox and two text box:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="gender.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/178001_gender.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tex box has these expressions:&lt;/P&gt;&lt;P&gt;='Female: '&amp;amp;count( {$&amp;lt;Gender={'Female'}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;='Male: '&amp;amp;count( {$&amp;lt;Gender={'Male'}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering If anybody knows why set analysis doesn't work here: If I choose Female in the list box it still shows 5 Male in the text box. &lt;SPAN style="font-size: 10pt;"&gt;I know I can achieve correct count with getselectedcount function, but what to do If I want to use set analysis and that it would take into account all the selections? I though $ symbol should do the trick, but id doesn't in this case. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please also see the app attached. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Sep 2017 12:01:44 GMT</pubDate>
    <dc:creator>summerrain</dc:creator>
    <dc:date>2017-09-28T12:01:44Z</dc:date>
    <item>
      <title>Set analysis and Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432833#M430767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My data set is this:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="287" style="border: 1px solid rgb(0, 0, 0); width: 190px; height: 200px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Gender&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Female&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Male&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Female&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Male&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Female&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Male&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;7&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Female&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Male&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Female&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Male&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a listbox and two text box:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="gender.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/178001_gender.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tex box has these expressions:&lt;/P&gt;&lt;P&gt;='Female: '&amp;amp;count( {$&amp;lt;Gender={'Female'}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;='Male: '&amp;amp;count( {$&amp;lt;Gender={'Male'}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering If anybody knows why set analysis doesn't work here: If I choose Female in the list box it still shows 5 Male in the text box. &lt;SPAN style="font-size: 10pt;"&gt;I know I can achieve correct count with getselectedcount function, but what to do If I want to use set analysis and that it would take into account all the selections? I though $ symbol should do the trick, but id doesn't in this case. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please also see the app attached. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 12:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432833#M430767</guid>
      <dc:creator>summerrain</dc:creator>
      <dc:date>2017-09-28T12:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432834#M430768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what are you trying to do ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you choose Female, you want the text box "Male" shows 0 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 12:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432834#M430768</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2017-09-28T12:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432835#M430769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;='Female: '&amp;amp;count( {$&amp;lt;Gender &lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;*&lt;/SPAN&gt;= {'Female'}&amp;gt;} ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;='Male: '&amp;amp;count( {$&amp;lt;Gender &lt;SPAN style="; color: #ff0000; font-size: 14pt;"&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;/SPAN&gt;= {'Male'}&amp;gt;} ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 12:07:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432835#M430769</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-28T12:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432836#M430770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try these&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Female: '&amp;amp;count( {&amp;lt; Gender = {"=GetFieldSelections(Gender) = 'Female' "} &amp;gt;} ID) &lt;/P&gt;&lt;P&gt;='Male: '&amp;amp;count( {&amp;lt; Gender = {"=GetFieldSelections(Gender) = 'Male' "} &amp;gt;} ID) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 12:13:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432836#M430770</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-09-28T12:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432837#M430771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vytautas,&lt;/P&gt;&lt;P&gt;The set expression {$&amp;lt;Gender={'Male'}&amp;gt;} tells the aggregation function it is used in to disregard user selections for Gender and instead return the result as if 'Male' had been selected. The whole idea of set analysis is to allow expressions be be calculated over records that are not restricted solely to user selections in the document. For your purposes try Sum(DISTINCT if(Gender = 'Male',ID)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 12:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432837#M430771</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-09-28T12:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432838#M430772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;='Female: '&amp;amp;if(GetFieldSelections(Gender)='Female', count( {$&amp;lt;Gender={'Female'}&amp;gt;} ID),0)&lt;/P&gt;&lt;P&gt;='Male: '&amp;amp;if(GetFieldSelections(Gender)='Male', count( {$&amp;lt;Gender={'Male'}&amp;gt;} ID),0)&lt;/P&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohammad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 12:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432838#M430772</guid>
      <dc:creator>mohammadkhatimi</dc:creator>
      <dc:date>2017-09-28T12:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432839#M430773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first time i see this.. can you explain the meaning of the STAR here ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;YB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 12:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432839#M430773</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2017-09-28T12:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432840#M430774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4663"&gt;Implicit Set Operators&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 12:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432840#M430774</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-28T12:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432841#M430775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very nice post, thank you !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 12:31:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432841#M430775</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2017-09-28T12:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432842#M430776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As always, amazing, Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 13:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-Count-Function/m-p/1432842#M430776</guid>
      <dc:creator>summerrain</dc:creator>
      <dc:date>2017-09-28T13:15:47Z</dc:date>
    </item>
  </channel>
</rss>

