<?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: How to Count matching values in 2 different fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Count-matching-values-in-2-different-fields/m-p/1414449#M817543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you expecting this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;picked = {'0'}, BOH={'0'}&amp;gt;} Measure)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(If(picked=0 and BOH = 0,Measure))&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Aug 2017 04:06:19 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-08-31T04:06:19Z</dc:date>
    <item>
      <title>How to Count matching values in 2 different fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Count-matching-values-in-2-different-fields/m-p/1414448#M817542</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;Im fairly new to qlikview and im trying to do the following , in the below table there is 3 zeros in the picked column and 3 zeros in the BOH column, so there is 3 instances were picked&amp;nbsp; = 0 and BOH = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do i create an expression where i can get the value 3 returned ( this is the &lt;SPAN style="font-size: 13.3333px;"&gt;3 instances were 0 = 0.)&lt;/SPAN&gt;&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;picked&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;BOH&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&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;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i believe in excel the countifs function can be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanking you in advance &lt;/P&gt;&lt;P&gt;Lynn&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/How-to-Count-matching-values-in-2-different-fields/m-p/1414448#M817542</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count matching values in 2 different fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Count-matching-values-in-2-different-fields/m-p/1414449#M817543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you expecting this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;picked = {'0'}, BOH={'0'}&amp;gt;} Measure)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(If(picked=0 and BOH = 0,Measure))&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 04:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Count-matching-values-in-2-different-fields/m-p/1414449#M817543</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-31T04:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count matching values in 2 different fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Count-matching-values-in-2-different-fields/m-p/1414450#M817544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;im trying to determine where ever picked = 0 and BOH = 0, how many instances of that is there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 06:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Count-matching-values-in-2-different-fields/m-p/1414450#M817544</guid>
      <dc:creator />
      <dc:date>2017-08-31T06:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count matching values in 2 different fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Count-matching-values-in-2-different-fields/m-p/1414451#M817545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lynn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should do the trick. You just need to compare the two fields against each other to find matches...&lt;/P&gt;&lt;P&gt;=num(count(if(picked=BOH,[YourMainIdentifierField])),'#,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're only matching the 0's, then this will suffice...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=num(count({$&amp;lt;picked={0},BOH={0}&amp;gt;}[YourMainIdentifierField])),'#,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sam &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 09:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Count-matching-values-in-2-different-fields/m-p/1414451#M817545</guid>
      <dc:creator>sam_grounds</dc:creator>
      <dc:date>2017-08-31T09:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count matching values in 2 different fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Count-matching-values-in-2-different-fields/m-p/1414452#M817546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lynn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just create a column like below. Let me know if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Picked,&lt;/P&gt;&lt;P&gt;BOH,&lt;/P&gt;&lt;P&gt;if(Picked = BOH, 'TRUE', 'FALSE') as Match&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Picked, BOH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0, 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0, 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0, 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, 4&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 10:01:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Count-matching-values-in-2-different-fields/m-p/1414452#M817546</guid>
      <dc:creator>sathishbabu_s_g</dc:creator>
      <dc:date>2017-08-31T10:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count matching values in 2 different fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Count-matching-values-in-2-different-fields/m-p/1414453#M817547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;picked = {'0'}, BOH={'0'}&amp;gt;} Instance) //&lt;/STRONG&gt; Here, I haven't seen any Instance field in your data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 13:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Count-matching-values-in-2-different-fields/m-p/1414453#M817547</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-31T13:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count matching values in 2 different fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Count-matching-values-in-2-different-fields/m-p/1414454#M817548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; background-color: #f2f2f2;"&gt;=num(count({$&amp;lt;picked={0},BOH={0}&amp;gt;}picked)),'#,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 13:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Count-matching-values-in-2-different-fields/m-p/1414454#M817548</guid>
      <dc:creator>sam_grounds</dc:creator>
      <dc:date>2017-08-31T13:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count matching values in 2 different fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Count-matching-values-in-2-different-fields/m-p/1414455#M817549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please provide enough data to build the logic, here you need to find out instances , so what should be counted as instances, is there any Key field in your data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 13:56:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Count-matching-values-in-2-different-fields/m-p/1414455#M817549</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-08-31T13:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count matching values in 2 different fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Count-matching-values-in-2-different-fields/m-p/1414456#M817552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could just count one of the fields mentioned as outlined in my example above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 14:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Count-matching-values-in-2-different-fields/m-p/1414456#M817552</guid>
      <dc:creator>sam_grounds</dc:creator>
      <dc:date>2017-08-31T14:53:35Z</dc:date>
    </item>
  </channel>
</rss>

