<?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 rows where two fields don't match in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-rows-where-two-fields-don-t-match/m-p/78684#M458606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Count( if ([Header 3] &amp;lt;&amp;gt; [Header 4], [Header 2]))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Feb 2018 05:20:00 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2018-02-09T05:20:00Z</dc:date>
    <item>
      <title>Count rows where two fields don't match</title>
      <link>https://community.qlik.com/t5/QlikView/Count-rows-where-two-fields-don-t-match/m-p/78683#M458605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have data where I'm trying to count in a chart where two fields don't match.&lt;/P&gt;&lt;P&gt;&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;Header 1&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 2&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;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 4&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 5&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 6&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;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;HW&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;HW&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;414&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;414&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;HW&lt;/TD&gt;&lt;TD&gt;SW&lt;/TD&gt;&lt;TD&gt;414&lt;/TD&gt;&lt;TD&gt;412&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to get a count of 1&lt;/P&gt;&lt;P&gt;Count (Header 1,Header 2) if Header 3 &amp;lt;&amp;gt; Header 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can make a flag at the table level and it works but when I try to put it in a Chart it fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 04:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-rows-where-two-fields-don-t-match/m-p/78683#M458605</guid>
      <dc:creator>kstroupe</dc:creator>
      <dc:date>2018-02-09T04:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows where two fields don't match</title>
      <link>https://community.qlik.com/t5/QlikView/Count-rows-where-two-fields-don-t-match/m-p/78684#M458606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Count( if ([Header 3] &amp;lt;&amp;gt; [Header 4], [Header 2]))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 05:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-rows-where-two-fields-don-t-match/m-p/78684#M458606</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-09T05:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows where two fields don't match</title>
      <link>https://community.qlik.com/t5/QlikView/Count-rows-where-two-fields-don-t-match/m-p/78685#M458607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response...I did try that and it worked as long as I was only counting Header 1, but I want to count dimension Header 1 and Header 2 concatenated together and it's at that point where my expression fails. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 14:52:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-rows-where-two-fields-don-t-match/m-p/78685#M458607</guid>
      <dc:creator>kstroupe</dc:creator>
      <dc:date>2018-02-09T14:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows where two fields don't match</title>
      <link>https://community.qlik.com/t5/QlikView/Count-rows-where-two-fields-don-t-match/m-p/78686#M458608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Clever's example, you are counting &lt;EM&gt;rows&lt;/EM&gt; of an internal table that have Header3 &amp;lt;&amp;gt; Header4. That's the same as counting concatenated Header1 and Header2 values, unless you want to count distinct concatenated Header1 and Header2 value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW to count occurrences of a composite field, perform a real concatenate like &lt;EM&gt;Header1 &amp;amp; Header2&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 15:03:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-rows-where-two-fields-don-t-match/m-p/78686#M458608</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-09T15:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows where two fields don't match</title>
      <link>https://community.qlik.com/t5/QlikView/Count-rows-where-two-fields-don-t-match/m-p/78687#M458609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you... I am trying to count distinct because it is giving me a count of 2 where I would like a count of 1.&amp;nbsp; When I try to add the word DISTINCT I have an error in my expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Header3 &amp;lt;&amp;gt; Header4&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;EM&gt;Header1 &amp;amp; Header2&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 15:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-rows-where-two-fields-don-t-match/m-p/78687#M458609</guid>
      <dc:creator>kstroupe</dc:creator>
      <dc:date>2018-02-09T15:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows where two fields don't match</title>
      <link>https://community.qlik.com/t5/QlikView/Count-rows-where-two-fields-don-t-match/m-p/78688#M458610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you asking me where the DISTINCT keyword goes? If so, see here: &lt;A href="http://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/ChartFunctions/CounterAggregationFunctions/count.htm" title="http://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/ChartFunctions/CounterAggregationFunctions/count.htm"&gt;Count - chart function ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It goes between the parentheses and in front of the current expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 16:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-rows-where-two-fields-don-t-match/m-p/78688#M458610</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-09T16:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows where two fields don't match</title>
      <link>https://community.qlik.com/t5/QlikView/Count-rows-where-two-fields-don-t-match/m-p/78689#M458611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you everyone...I solved my issue by adding a count flag to the load which was always 1.&amp;nbsp; and doing it this way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Header3 &amp;lt;&amp;gt; Header4&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;QTY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;EM&gt;Header1 ,Header2&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I appreciate everyone's help and time on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 16:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-rows-where-two-fields-don-t-match/m-p/78689#M458611</guid>
      <dc:creator>kstroupe</dc:creator>
      <dc:date>2018-02-09T16:06:51Z</dc:date>
    </item>
  </channel>
</rss>

