<?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 Set Analysis Count Where Instance is &amp;gt;1 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-Where-Instance-is-gt-1/m-p/971697#M332603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on an expression/measure to count the number of reservations with Air AND &lt;SPAN style="text-decoration: underline;"&gt;either&lt;/SPAN&gt; Car &lt;SPAN style="text-decoration: underline;"&gt;or&lt;/SPAN&gt; Hotel. See attached data set example. I'm using Column E as the identifier as it will be same for the reservation elements (Air, Car, Hotel). I need to count those that have both Air and Car or Hotel. As a reference I'm using the following to count Air transactions:&lt;/P&gt;&lt;P&gt;Count(Distinct{$&amp;lt;[Booking Type] = {'Air'}, [Transaction Type] = {'Sale'}&amp;gt;} [Record Locator])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to single out Car/Hotel &lt;SPAN style="text-decoration: underline;"&gt;without&lt;/SPAN&gt; Air using the following but it did not work:&lt;/P&gt;&lt;P&gt;Count(Distinct{&amp;lt;[Record Locator] = {'&amp;gt;1'}, [Booking Sub Type] += {'Car','Hotel'}, [Booking Type] -= {'Air'}, [Transaction Type] = {'Sale'}&amp;gt;} [Record Locator])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2015 14:45:38 GMT</pubDate>
    <dc:creator>jcampbell</dc:creator>
    <dc:date>2015-09-30T14:45:38Z</dc:date>
    <item>
      <title>Set Analysis Count Where Instance is &gt;1</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-Where-Instance-is-gt-1/m-p/971697#M332603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on an expression/measure to count the number of reservations with Air AND &lt;SPAN style="text-decoration: underline;"&gt;either&lt;/SPAN&gt; Car &lt;SPAN style="text-decoration: underline;"&gt;or&lt;/SPAN&gt; Hotel. See attached data set example. I'm using Column E as the identifier as it will be same for the reservation elements (Air, Car, Hotel). I need to count those that have both Air and Car or Hotel. As a reference I'm using the following to count Air transactions:&lt;/P&gt;&lt;P&gt;Count(Distinct{$&amp;lt;[Booking Type] = {'Air'}, [Transaction Type] = {'Sale'}&amp;gt;} [Record Locator])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to single out Car/Hotel &lt;SPAN style="text-decoration: underline;"&gt;without&lt;/SPAN&gt; Air using the following but it did not work:&lt;/P&gt;&lt;P&gt;Count(Distinct{&amp;lt;[Record Locator] = {'&amp;gt;1'}, [Booking Sub Type] += {'Car','Hotel'}, [Booking Type] -= {'Air'}, [Transaction Type] = {'Sale'}&amp;gt;} [Record Locator])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 14:45:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-Where-Instance-is-gt-1/m-p/971697#M332603</guid>
      <dc:creator>jcampbell</dc:creator>
      <dc:date>2015-09-30T14:45:38Z</dc:date>
    </item>
  </channel>
</rss>

