<?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 Count values from one column that are in another in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-values-from-one-column-that-are-in-another/m-p/1583554#M42660</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can somebody help me with something. I need to count how many distinct values from one column are in another. For example:&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Column A&lt;/TD&gt;&lt;TD&gt;Column B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;P&lt;/TD&gt;&lt;TD&gt;H&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;I&lt;/TD&gt;&lt;TD&gt;I&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;L&lt;/TD&gt;&lt;TD&gt;J&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, if I want to count distinct values from Column A that are present in Column B, the result would be 5.&lt;/P&gt;&lt;P&gt;Any ideas to do it? Script or graph formula?&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2019 19:11:45 GMT</pubDate>
    <dc:creator>danielca</dc:creator>
    <dc:date>2019-05-22T19:11:45Z</dc:date>
    <item>
      <title>Count values from one column that are in another</title>
      <link>https://community.qlik.com/t5/App-Development/Count-values-from-one-column-that-are-in-another/m-p/1583554#M42660</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can somebody help me with something. I need to count how many distinct values from one column are in another. For example:&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Column A&lt;/TD&gt;&lt;TD&gt;Column B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;P&lt;/TD&gt;&lt;TD&gt;H&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;I&lt;/TD&gt;&lt;TD&gt;I&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;L&lt;/TD&gt;&lt;TD&gt;J&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, if I want to count distinct values from Column A that are present in Column B, the result would be 5.&lt;/P&gt;&lt;P&gt;Any ideas to do it? Script or graph formula?&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 19:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-values-from-one-column-that-are-in-another/m-p/1583554#M42660</guid>
      <dc:creator>danielca</dc:creator>
      <dc:date>2019-05-22T19:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count values from one column that are in another</title>
      <link>https://community.qlik.com/t5/App-Development/Count-values-from-one-column-that-are-in-another/m-p/1583560#M42661</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 975px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12513iD093BF653C14C4E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You could use this or a variant of this expression below.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FindOneOf([Column A], concat(total [Column B]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use two variants, one with aggr in the attached qvf.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 19:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-values-from-one-column-that-are-in-another/m-p/1583560#M42661</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-05-22T19:26:21Z</dc:date>
    </item>
  </channel>
</rss>

