<?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 with multiple conditions in the same dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-with-multiple-conditions-in-the-same-dimension/m-p/1457358#M35904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Status = {'A', 'B'}&amp;gt;} Shipment)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Status = {'A'}&amp;gt;+&lt;STRONG&gt;&amp;lt;Status = {'B'}&amp;gt;&lt;/STRONG&gt;} Shipment)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jan 2018 16:52:57 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-01-02T16:52:57Z</dc:date>
    <item>
      <title>Count with multiple conditions in the same dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Count-with-multiple-conditions-in-the-same-dimension/m-p/1457357#M35903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to count "number of shipments". The shipments could have N status codes (e.g. 'Picked-Up','Delivered' , etc.) - you might know from DHL or when you order something from the internet &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my goal is to count shipments when they have specific status codes in our database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example we have defined 6 status codes as mandatory, so we want to count all shipments in our database where ALL 6 statuses have been set. e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shipments with status A: count(status = A... no of shipments) = 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shipments with status B: count(status = B.. no of shipments) = 90&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shipments with status A &amp;amp; B: count ???? = 80&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The question is, which formula I should use?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with the the "count" formula with comma, but could not have the correct number of shipments. Qliksense gave me the number of shipments with the last status in the formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count (status = A, status = B, ... no of shipments) = 90&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think the count formula cannot take me to my goal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe someone here will have a better idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 14:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-with-multiple-conditions-in-the-same-dimension/m-p/1457357#M35903</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-02T14:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count with multiple conditions in the same dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Count-with-multiple-conditions-in-the-same-dimension/m-p/1457358#M35904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Status = {'A', 'B'}&amp;gt;} Shipment)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Status = {'A'}&amp;gt;+&lt;STRONG&gt;&amp;lt;Status = {'B'}&amp;gt;&lt;/STRONG&gt;} Shipment)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 16:52:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-with-multiple-conditions-in-the-same-dimension/m-p/1457358#M35904</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-02T16:52:57Z</dc:date>
    </item>
  </channel>
</rss>

