<?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: Count Occurence of all distinct values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-Occurence-of-all-distinct-values/m-p/43714#M2929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a problem I'm trying to solve that extends from this one. In my case, I have been able to show the breakdown of my equivalent of the Count of Occurrences using the Count() function as you have in Count(Interest). What I need to do now is to highlight in a gauge the number of rows of Interests where the count is a particular value, set against the total number of rows in the summary. So in this example, I would like to be able to select Dancing and have the gauge show 2/3 (based on the 2 in the row total, as opposed to the value 'Dancing'). Yes, it's a somewhat crazy requirement, but it's what's needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried something like Count({$&amp;lt;[Count(Interest)]={2}&amp;gt;} Interest) to get the rows but this produces a sum of the values selected, not the row count so I guess I'm missing the point here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any wise words out there please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2018 06:21:32 GMT</pubDate>
    <dc:creator>bearschoice</dc:creator>
    <dc:date>2018-07-13T06:21:32Z</dc:date>
    <item>
      <title>Count Occurence of all distinct values</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Occurence-of-all-distinct-values/m-p/43712#M2927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us say I have a table with a&amp;nbsp; string based column 'Interests' holding strings separated by a delimiter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&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;Interests&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;Music;Tabletennis&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;Music&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;Dancing&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;Dancing&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I count the occurrence of every distinct interest in my table (without knowing all possible interests before, meaning they are not static, e.g. tomorrow another interest 'chess' might appear in my table)?&lt;/P&gt;&lt;P&gt;I.e. the expression shall give the following result:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&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;Interest&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;Count of Occurrences&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;Header 3&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Dancing&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;since row 3 and 4 contain 'Dancing'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Music&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;since row 1 and 2 contain 'Music'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Tabletennis&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;since row 1 contains 'Tabletennis'&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read about the SubField&amp;nbsp; and SubStringCount functions. But I cannot glue it together... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 17:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Occurence-of-all-distinct-values/m-p/43712#M2927</guid>
      <dc:creator>htsiemens</dc:creator>
      <dc:date>2018-02-02T17:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count Occurence of all distinct values</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Occurence-of-all-distinct-values/m-p/43713#M2928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like the attached, which uses this load script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM style="color: #993300;"&gt;Temp:&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;Load&amp;nbsp; *&amp;nbsp; inline [&amp;nbsp; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;ID , Interests&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;1 , Music;Tabletennis&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;2 , Music&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;3 , Dancing&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;4 , Dancing&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;Data:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;SubField(Interests, ';')&amp;nbsp; as&amp;nbsp; [Interest]&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;resident Temp&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM style="color: #993300;"&gt;Drop table Temp ;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 17:54:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Occurence-of-all-distinct-values/m-p/43713#M2928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-02T17:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count Occurence of all distinct values</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Occurence-of-all-distinct-values/m-p/43714#M2929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a problem I'm trying to solve that extends from this one. In my case, I have been able to show the breakdown of my equivalent of the Count of Occurrences using the Count() function as you have in Count(Interest). What I need to do now is to highlight in a gauge the number of rows of Interests where the count is a particular value, set against the total number of rows in the summary. So in this example, I would like to be able to select Dancing and have the gauge show 2/3 (based on the 2 in the row total, as opposed to the value 'Dancing'). Yes, it's a somewhat crazy requirement, but it's what's needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried something like Count({$&amp;lt;[Count(Interest)]={2}&amp;gt;} Interest) to get the rows but this produces a sum of the values selected, not the row count so I guess I'm missing the point here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any wise words out there please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 06:21:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Occurence-of-all-distinct-values/m-p/43714#M2929</guid>
      <dc:creator>bearschoice</dc:creator>
      <dc:date>2018-07-13T06:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Count Occurence of all distinct values</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Occurence-of-all-distinct-values/m-p/43715#M2930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your case, could you:&lt;/P&gt;&lt;P&gt;instead of dropping the table retain it and have the ID be what links it, call Interest to another column (e.g. keyword)&lt;/P&gt;&lt;P&gt;distinct count on interest and distinct count on keywords via Set Analysis and display?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2018 03:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Occurence-of-all-distinct-values/m-p/43715#M2930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-14T03:09:25Z</dc:date>
    </item>
  </channel>
</rss>

