<?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 Count with OR function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-with-OR-function/m-p/1832324#M68677</link>
    <description>&lt;P&gt;I am new to using Qlik Sense and I am running into an error with a KPI function I am creating. I am trying to count the total number of distinct patients in a program. Throughout the patients' time in a facility, they can be in a variety of the programs, but I want a count of unique patients of these three programs combined. When I use the code below, it will only give me the count for Adult Care 3. If I move Adult Care 1 to the end of the expression, it only gives the count of Adult Care 1. Any suggestions? There are a ton of service programs but I am focusing on these 3 specifically, which is why I can't just do a basic distinct count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;Service.Program={'Adult Care 1'}, [Service.Program]={'Adult Care 2'}, Service.Program={'Adult Care 3'} &amp;gt;} distinct ID)&lt;/P&gt;</description>
    <pubDate>Mon, 30 Aug 2021 20:40:36 GMT</pubDate>
    <dc:creator>afitzgerald</dc:creator>
    <dc:date>2021-08-30T20:40:36Z</dc:date>
    <item>
      <title>Count with OR function</title>
      <link>https://community.qlik.com/t5/App-Development/Count-with-OR-function/m-p/1832324#M68677</link>
      <description>&lt;P&gt;I am new to using Qlik Sense and I am running into an error with a KPI function I am creating. I am trying to count the total number of distinct patients in a program. Throughout the patients' time in a facility, they can be in a variety of the programs, but I want a count of unique patients of these three programs combined. When I use the code below, it will only give me the count for Adult Care 3. If I move Adult Care 1 to the end of the expression, it only gives the count of Adult Care 1. Any suggestions? There are a ton of service programs but I am focusing on these 3 specifically, which is why I can't just do a basic distinct count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;Service.Program={'Adult Care 1'}, [Service.Program]={'Adult Care 2'}, Service.Program={'Adult Care 3'} &amp;gt;} distinct ID)&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 20:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-with-OR-function/m-p/1832324#M68677</guid>
      <dc:creator>afitzgerald</dc:creator>
      <dc:date>2021-08-30T20:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count with OR function</title>
      <link>https://community.qlik.com/t5/App-Development/Count-with-OR-function/m-p/1832325#M68678</link>
      <description>&lt;P&gt;&lt;SPAN&gt;=Count({$&amp;lt;Service.Program={'Adult Care 1','Adult Care 2','Adult Care 3'} &amp;gt;} distinct ID)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 20:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-with-OR-function/m-p/1832325#M68678</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-08-30T20:41:45Z</dc:date>
    </item>
  </channel>
</rss>

