<?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 If Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/1303195#M828049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to count the number of times each part number is associated with each vehicle number using the document number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jun 2017 12:58:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-06-30T12:58:53Z</dc:date>
    <item>
      <title>Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/1303192#M828046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to Qlikview and I am trying to create an expression that counts the number of times a certain [Material] number has the same [Document] number as another certain [Material] number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each time a vehicle is sold, the purchase is given a [Document] number. The [Document] number is given to each part [Material] that was sold along with actual vehicle [Material] number. So, a [Document Number] is given to a vehicle [Material] and to each part [Material] when they are sold with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; border-image: none; 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;Document &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;Material&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;Description&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;12345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;618566G01&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;vehicle&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;12345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;628489&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;part1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;12345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;652587&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;part2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;12345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;633742&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;part3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for an expression that will count the number of times a part number is associated with a vehicle through a document number.&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/Where-Clause/m-p/1303192#M828046</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count If Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/1303193#M828047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try This may be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Sum(Aggr(Count(Material), Material, Document))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 21:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/1303193#M828047</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-06-29T21:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Count If Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/1303194#M828048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the expected output here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 02:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/1303194#M828048</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-30T02:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count If Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/1303195#M828049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to count the number of times each part number is associated with each vehicle number using the document number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 12:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/1303195#M828049</guid>
      <dc:creator />
      <dc:date>2017-06-30T12:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count If Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/1303196#M828050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your expected output based on the sample data provided in your first thread?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 15:18:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/1303196#M828050</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-06-30T15:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count If Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/1303197#M828051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on your sample is this what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Document, Material, Description&lt;/P&gt;&lt;P&gt;12345, 618566G01, vehicle&lt;/P&gt;&lt;P&gt;12345, 628489, part1&lt;/P&gt;&lt;P&gt;12345, 652587, part2&lt;/P&gt;&lt;P&gt;12345, 633742, part3&lt;/P&gt;&lt;P&gt;12345, 633742, part4&lt;/P&gt;&lt;P&gt;12345, 633742, part5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168746_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 15:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/1303197#M828051</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-06-30T15:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Count If Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/1303198#M828052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brett,&lt;/P&gt;&lt;P&gt;In your script you could split the table into two using the Description field to differentiate between vehicles and parts or use the Material code if there is a logic you can apply there:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="364"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; background: #6690BC; padding: .75pt 5.4pt .75pt 5.4pt;" valign="bottom" width="71"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: white; font-size: 10.0pt; font-family: 'Inherit',serif;"&gt;Document&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; background: #6690BC; padding: .75pt 5.4pt .75pt 5.4pt;" valign="bottom" width="155"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: white; font-size: 10.0pt; font-family: 'Inherit',serif;"&gt;Vehicle Material Code&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; background: #6690BC; padding: .75pt 5.4pt .75pt 5.4pt;" valign="bottom" width="139"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: white; font-size: 10.0pt; font-family: 'Inherit',serif;"&gt;Vehicle Description&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; background: white; padding: .75pt 5.4pt .75pt 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Inherit',serif; color: #3d3d3d;"&gt;12345&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; background: white; padding: .75pt 5.4pt .75pt 5.4pt;" valign="bottom" width="155"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Inherit',serif; color: #3d3d3d;"&gt;618566G01&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; background: white; padding: .75pt 5.4pt .75pt 5.4pt;" valign="bottom" width="139"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Inherit',serif; color: #3d3d3d;"&gt;vehicle&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="308"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; background: #6690BC; padding: .75pt 5.4pt .75pt 5.4pt;" valign="bottom" width="71"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: white; font-size: 10.0pt; font-family: 'Inherit',serif;"&gt;Document&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; background: #6690BC; padding: .75pt 5.4pt .75pt 5.4pt;" valign="bottom" width="128"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: white; font-size: 10.0pt; font-family: 'Inherit',serif;"&gt;Part Material Code&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; background: #6690BC; padding: .75pt 5.4pt .75pt 5.4pt;" valign="bottom" width="109"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: white; font-size: 10.0pt; font-family: 'Inherit',serif;"&gt;Part Description&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; background: white; padding: .75pt 5.4pt .75pt 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Inherit',serif; color: #3d3d3d;"&gt;12345&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; background: white; padding: .75pt 5.4pt .75pt 5.4pt;" valign="bottom" width="128"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Inherit',serif; color: #3d3d3d;"&gt;628489&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; background: white; padding: .75pt 5.4pt .75pt 5.4pt;" valign="bottom" width="109"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Inherit',serif; color: #3d3d3d;"&gt;part1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; background: white; padding: .75pt 5.4pt .75pt 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Inherit',serif; color: #3d3d3d;"&gt;12345&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; background: white; padding: .75pt 5.4pt .75pt 5.4pt;" valign="bottom" width="128"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Inherit',serif; color: #3d3d3d;"&gt;652587&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; background: white; padding: .75pt 5.4pt .75pt 5.4pt;" valign="bottom" width="109"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Inherit',serif; color: #3d3d3d;"&gt;part2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; background: white; padding: .75pt 5.4pt .75pt 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Inherit',serif; color: #3d3d3d;"&gt;12345&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; background: white; padding: .75pt 5.4pt .75pt 5.4pt;" valign="bottom" width="128"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Inherit',serif; color: #3d3d3d;"&gt;633742&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; background: white; padding: .75pt 5.4pt .75pt 5.4pt;" valign="bottom" width="109"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Inherit',serif; color: #3d3d3d;"&gt;part3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then a selection on Part Material Code will associate with Vehicle Material Code via the Document field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 15:36:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/1303198#M828052</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-06-30T15:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count If Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/1303199#M828053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe this is what I'm looking for.. I can differentiate vehicles and parts using the string 'G01'. I'm assuming I do this through the use of the subfield function in the script correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 17:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/1303199#M828053</guid>
      <dc:creator />
      <dc:date>2017-06-30T17:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count If Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/1303200#M828054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brett,&lt;/P&gt;&lt;P&gt;Subfield is not the function to use in a where clause. You have a choice. Two suggestions: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE Right(Material,3) = 'G01'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE Wildmatch(&lt;SPAN style="font-size: 13.3333px;"&gt;Material, '*G01')&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;&lt;SPAN style="font-size: 13.3333px;"&gt;Good luck&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;&lt;SPAN style="font-size: 13.3333px;"&gt;Andrew&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 17:35:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause/m-p/1303200#M828054</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-06-30T17:35:28Z</dc:date>
    </item>
  </channel>
</rss>

