<?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 if value in two columns are the same in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-if-value-in-two-columns-are-the-same/m-p/1115323#M888030</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;I have a hierarchy data set and there are cases where parent level and child level are sharing the same value.&lt;/P&gt;&lt;P&gt;There are two things that I want to do with that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. count the number of rows that share the same value for PARENT&amp;nbsp; and CHILD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. actually filtering for those rows so that I can bring them in to excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the first question I was thinking about writing something like&lt;/P&gt;&lt;P&gt;count( distinct if ( PARENT = CHILD), PARENT)&lt;/P&gt;&lt;P&gt;but it does not seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for the second one I have no clue at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>count if value in two columns are the same</title>
      <link>https://community.qlik.com/t5/QlikView/count-if-value-in-two-columns-are-the-same/m-p/1115323#M888030</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;I have a hierarchy data set and there are cases where parent level and child level are sharing the same value.&lt;/P&gt;&lt;P&gt;There are two things that I want to do with that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. count the number of rows that share the same value for PARENT&amp;nbsp; and CHILD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. actually filtering for those rows so that I can bring them in to excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the first question I was thinking about writing something like&lt;/P&gt;&lt;P&gt;count( distinct if ( PARENT = CHILD), PARENT)&lt;/P&gt;&lt;P&gt;but it does not seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for the second one I have no clue at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&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/count-if-value-in-two-columns-are-the-same/m-p/1115323#M888030</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: count if value in two columns are the same</title>
      <link>https://community.qlik.com/t5/QlikView/count-if-value-in-two-columns-are-the-same/m-p/1115324#M888032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe&lt;/P&gt;&lt;P&gt;Sum(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PARENT = CHILD, 1, 0 )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 16:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-if-value-in-two-columns-are-the-same/m-p/1115324#M888032</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-08-30T16:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: count if value in two columns are the same</title>
      <link>https://community.qlik.com/t5/QlikView/count-if-value-in-two-columns-are-the-same/m-p/1115325#M888034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;you could create flags in the script and after that to sum them in the layout. I prefer to do that instead of sum(if()).&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 16:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-if-value-in-two-columns-are-the-same/m-p/1115325#M888034</guid>
      <dc:creator>ankali1990</dc:creator>
      <dc:date>2016-08-30T16:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: count if value in two columns are the same</title>
      <link>https://community.qlik.com/t5/QlikView/count-if-value-in-two-columns-are-the-same/m-p/1596434#M888035</link>
      <description>&lt;P&gt;Hi Stephan,&lt;BR /&gt;I had a similar issue. So I have two columns, PART AND CUBES, with one to many relationship.(one PART can have many CUBES or a PART can have no CUBE).&lt;BR /&gt;Scenario: If I select 3 PARTS which have 2 CUBES, wherein 2 PARTS have 2 CUBES and 1 PART has no CUBE. I want a count of all the CUBES plus any PART which has no CUBES.&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT face="Calibri"&gt;PART&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT face="Calibri"&gt;CUBES&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="Calibri"&gt;SW1001&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="Calibri"&gt;1415TV&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="Calibri"&gt;DC1003&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="Calibri"&gt;1516TD&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="Calibri"&gt;BW1002&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the count should be 2+1=3.&lt;BR /&gt;How can I implement this?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Abhishek&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 18:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-if-value-in-two-columns-are-the-same/m-p/1596434#M888035</guid>
      <dc:creator>abhi1693r</dc:creator>
      <dc:date>2019-06-26T18:23:24Z</dc:date>
    </item>
  </channel>
</rss>

