<?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 How to compare 2 columns and count if conditions are met in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-compare-2-columns-and-count-if-conditions-are-met/m-p/25346#M1729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to check a number of barcodes if they are correctly matched with the correct product types. So for e.g. a barcode that begins with 111 is a hat , 123 is a shoe etc. Some products have been wrongly labeled. so 123 is put down as a hat instead of a shoe. So I want to filter this out. This is what I have tried so far and I will appreciate some suggestions. thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #263238;"&gt;Count({&amp;lt;Barcode = {'*^111*'}, [Product Type] = {'hat'}&amp;gt;} 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #263238;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #263238;"&gt;I also tried&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #263238;"&gt;&lt;A href="https://community.qlik.com/thread/206925"&gt;Nested IF Statements&lt;/A&gt;&lt;SPAN style="color: #263238; font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;‌ &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;=Count(if(Barcode='*^111*' and [Product Type]= 'hat',1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;if((Barcode) = '*^123*' and [Product Type] = 'Shoe', 1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;if((Barcode) = '*^124*' and [Product Type] = 'Gloves', 1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;if((Barcode) = '*^125*' and [Product Type] = 'dress', 1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;if((Barcode) = '*^126*' and [Product Type] = 'Shirt', 1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;if((Barcode) = '*^127*' and [Product Type] = 'Tops', 1,0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2018 12:33:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-05-29T12:33:23Z</dc:date>
    <item>
      <title>How to compare 2 columns and count if conditions are met</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-compare-2-columns-and-count-if-conditions-are-met/m-p/25346#M1729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to check a number of barcodes if they are correctly matched with the correct product types. So for e.g. a barcode that begins with 111 is a hat , 123 is a shoe etc. Some products have been wrongly labeled. so 123 is put down as a hat instead of a shoe. So I want to filter this out. This is what I have tried so far and I will appreciate some suggestions. thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #263238;"&gt;Count({&amp;lt;Barcode = {'*^111*'}, [Product Type] = {'hat'}&amp;gt;} 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #263238;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #263238;"&gt;I also tried&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #263238;"&gt;&lt;A href="https://community.qlik.com/thread/206925"&gt;Nested IF Statements&lt;/A&gt;&lt;SPAN style="color: #263238; font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;‌ &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;=Count(if(Barcode='*^111*' and [Product Type]= 'hat',1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;if((Barcode) = '*^123*' and [Product Type] = 'Shoe', 1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;if((Barcode) = '*^124*' and [Product Type] = 'Gloves', 1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;if((Barcode) = '*^125*' and [Product Type] = 'dress', 1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;if((Barcode) = '*^126*' and [Product Type] = 'Shirt', 1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;if((Barcode) = '*^127*' and [Product Type] = 'Tops', 1,0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 12:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-compare-2-columns-and-count-if-conditions-are-met/m-p/25346#M1729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-29T12:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 columns and count if conditions are met</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-compare-2-columns-and-count-if-conditions-are-met/m-p/25347#M1730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to elaborate what exactly are you trying to do and where with a help of any example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 14:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-compare-2-columns-and-count-if-conditions-are-met/m-p/25347#M1730</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-29T14:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 columns and count if conditions are met</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-compare-2-columns-and-count-if-conditions-are-met/m-p/25348#M1731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="padding: 0 5.4pt; border: none; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;Building number&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;Product type&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;Barcode&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;000045630&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0 5.4pt; border-top: none; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: none; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;Hat&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0 5.4pt; border-top: none; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: none; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;1110000001679&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;000045669&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0 5.4pt; border-top: none; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: none; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;Shoe&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0 5.4pt; border-top: none; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: none; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;1110000012345&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;000045634&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0 5.4pt; border-top: none; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: none; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;Dress&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0 5.4pt; border-top: none; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: none; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;1240000000001&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;000045634&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0 5.4pt; border-top: none; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: none; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;Socks&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0 5.4pt; border-top: none; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: none; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;1250000000025&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;000045634&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0 5.4pt; border-top: none; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: none; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;Shirt&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0 5.4pt; border-top: none; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: none; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;1260000034035&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;000045712&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0 5.4pt; border-top: none; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: none; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;Shoe&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0 5.4pt; border-top: none; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: none; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;1230000000444&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;000045731&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0 5.4pt; border-top: none; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: none; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;Hat&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0 5.4pt; border-top: none; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: none; font-style: inherit; font-family: inherit;" valign="top" width="205"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 6pt; font-family: Arial, sans-serif; color: #263238;"&gt;1110000000799&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 style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;in the table, you can see that the product type 'Shoe' appears as with barcode prefix - 111 and 123(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8px; font-family: Arial, sans-serif; color: #263238;"&gt;1110000012345 and &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8px; font-family: Arial, sans-serif; color: #263238;"&gt;1230000000444&lt;/SPAN&gt;) This is inconsistent and so it is wrong.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;I want to be able to check the barcode against the product type. so all hats have 111 and shoes are 123 ... etc&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;So &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;=Count(if(Barcode='*^111*' and [Product Type]= 'hat',1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;if((Barcode) = '*^123*' and [Product Type] = 'Shoe', 1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;if((Barcode) = '*^124*' and [Product Type] = 'Dress', 1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;if((Barcode) = '*^125*' and [Product Type] = 'Socks', 1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;if((Barcode) = '*^126*' and [Product Type] = 'Shirt', 1,0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;does this make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 14:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-compare-2-columns-and-count-if-conditions-are-met/m-p/25348#M1731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-29T14:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 columns and count if conditions are met</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-compare-2-columns-and-count-if-conditions-are-met/m-p/25349#M1732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does, but I am confused as to what is &lt;SPAN style="color: #263238; font-family: Arial, sans-serif;"&gt;^ used for? Do you may be need this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;&lt;STRONG&gt;=Sum(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;&lt;STRONG&gt;If(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;&lt;STRONG&gt;(WildMatch(Barcode, '111*') and [Product Type] = 'hat') or&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #263238; font-size: 10pt; font-style: inherit; font-family: Arial, sans-serif;"&gt;&lt;STRONG&gt;WildMatch&lt;/STRONG&gt;(Barcode, '123*') and [Product Type] = 'Shoe') or&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #263238; font-size: 10pt; font-style: inherit; font-family: Arial, sans-serif;"&gt;(&lt;STRONG&gt;WildMatch&lt;/STRONG&gt;(Barcode, '124*') and [Product Type] = 'Dress') or&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #263238; font-size: 10pt; font-style: inherit; font-family: Arial, sans-serif;"&gt;(&lt;STRONG style="color: #263238; font-family: Arial, sans-serif;"&gt;WildMatch&lt;/STRONG&gt;(Barcode, '125*') and [Product Type] = 'Socks') or&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #263238; font-size: 10pt; font-style: inherit; font-family: Arial, sans-serif;"&gt;(&lt;STRONG style="color: #263238; font-family: Arial, sans-serif;"&gt;WildMatch&lt;/STRONG&gt;(Barcode, '126*') and [Product Type] = 'Shirt'), 1, 0&lt;/STRONG&gt;&lt;STRONG style="color: #263238; font-size: 10pt; font-style: inherit; font-family: Arial, sans-serif;"&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #263238; font-size: 10pt; font-style: inherit; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If you notice, I removed the initial * also in the WildMatch function above, because you are checking the first 3 characters... adding * in the beginning will make it a wild card search anywhere in the string....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 15:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-compare-2-columns-and-count-if-conditions-are-met/m-p/25349#M1732</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-29T15:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 columns and count if conditions are met</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-compare-2-columns-and-count-if-conditions-are-met/m-p/25350#M1733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used this&lt;STRONG&gt; ^&lt;/STRONG&gt; to define all barcode &lt;STRONG&gt;beginning with&lt;/STRONG&gt; 111, 123 etc. &lt;/P&gt;&lt;P&gt;Since I am trying to ensure that all the barcodes that begin with 111, 123, 124... are hat, shoe, Dress... respectively(basically if it begins with 111 and its a shirt, then I want to count it as an error and flag it but if it begins with 111 and is a hat, then it is okay not to count as it is not an error), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now tried the following also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Count(DISTINCT Aggr(If&lt;/P&gt;&lt;P&gt;(Barcode = '*^111*' and [Product Type] = 'hat') or&lt;/P&gt;&lt;P&gt;(Barcode = '*^123*' and [Product Type] = 'shoe') or&lt;/P&gt;&lt;P&gt;(Barcode = '*^124*' and [Product Type] = 'Dress')&lt;SPAN style="font-size: 10pt;"&gt;, 0, 1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It however doesnt return the correct value I am looking for.&amp;nbsp; I am not sure if i have missed something. Please have a look? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 11:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-compare-2-columns-and-count-if-conditions-are-met/m-p/25350#M1733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-31T11:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 columns and count if conditions are met</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-compare-2-columns-and-count-if-conditions-are-met/m-p/25351#M1734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever got a chance to try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=Sum(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;If(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;(WildMatch(Barcode, '111*') and [Product Type] = 'hat') or&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;WildMatch&lt;/STRONG&gt;(Barcode, '123*') and [Product Type] = 'Shoe') or&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;(&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;WildMatch&lt;/STRONG&gt;(Barcode, '124*') and [Product Type] = 'Dress') or&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;(&lt;STRONG style="font-style: inherit;"&gt;WildMatch&lt;/STRONG&gt;(Barcode, '125*') and [Product Type] = 'Socks') or&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;(&lt;STRONG style="font-style: inherit;"&gt;WildMatch&lt;/STRONG&gt;(Barcode, '126*') and [Product Type] = 'Shirt'), 1, 0&lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; color: #263238;"&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 15:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-compare-2-columns-and-count-if-conditions-are-met/m-p/25351#M1734</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-31T15:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 columns and count if conditions are met</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-compare-2-columns-and-count-if-conditions-are-met/m-p/25352#M1735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes it didnt work as expected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 11:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-compare-2-columns-and-count-if-conditions-are-met/m-p/25352#M1735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-01T11:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 columns and count if conditions are met</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-compare-2-columns-and-count-if-conditions-are-met/m-p/25353#M1736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to help you better?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 15:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-compare-2-columns-and-count-if-conditions-are-met/m-p/25353#M1736</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-01T15:52:22Z</dc:date>
    </item>
  </channel>
</rss>

