<?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: Possible Values Excluded From Count in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Possible-Values-Excluded-From-Count/m-p/1709246#M54447</link>
    <description>&lt;P&gt;Finally figured it out, solution added to other thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-App-Development/Count-all-possible-from-alternate-state/m-p/1706358#M54154" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-Sense-App-Development/Count-all-possible-from-alternate-state/m-p...&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jun 2020 04:40:44 GMT</pubDate>
    <dc:creator>sgagliardi</dc:creator>
    <dc:date>2020-06-09T04:40:44Z</dc:date>
    <item>
      <title>Possible Values Excluded From Count</title>
      <link>https://community.qlik.com/t5/App-Development/Possible-Values-Excluded-From-Count/m-p/1706666#M54176</link>
      <description>&lt;P&gt;Hello Qlik Community,&lt;/P&gt;&lt;P&gt;I have a scenario where I am attempting to reference possible values relative to a selection in the default state. I want to return a count of possible [Encounter Numbers] relative to [Patient ID] included in my selection. The expression below gets me pretty close, but I've found that it entirely excludes [Encounter Numbers] pertaining to [Patient ID] that occur more than once in my selection. I cannot for the life of me figure it out.&lt;/P&gt;&lt;P&gt;aggr(nodistinct only({1&amp;lt;[Encounter Number]=p({&amp;lt;[Encounter Number]&amp;gt;})&amp;gt;}[Encounter Number]),[Patient ID])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 19:23:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Possible-Values-Excluded-From-Count/m-p/1706666#M54176</guid>
      <dc:creator>sgagliardi</dc:creator>
      <dc:date>2020-05-29T19:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Values Excluded From Count</title>
      <link>https://community.qlik.com/t5/App-Development/Possible-Values-Excluded-From-Count/m-p/1706689#M54181</link>
      <description>&lt;P&gt;Doesn't the&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/April2020/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/BasicAggregationFunctions/only.htm" target="_self"&gt;Only&lt;/A&gt;&amp;nbsp; function return a Null if there are more than 1 instances?&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 21:30:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Possible-Values-Excluded-From-Count/m-p/1706689#M54181</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2020-05-29T21:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Values Excluded From Count</title>
      <link>https://community.qlik.com/t5/App-Development/Possible-Values-Excluded-From-Count/m-p/1707108#M54211</link>
      <description>&lt;P data-unlink="true"&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;Jwjackso,&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;That was my understanding of it also, but replacing only() with sum() here returns me a similar result.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 12:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Possible-Values-Excluded-From-Count/m-p/1707108#M54211</guid>
      <dc:creator>sgagliardi</dc:creator>
      <dc:date>2020-06-01T12:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Values Excluded From Count</title>
      <link>https://community.qlik.com/t5/App-Development/Possible-Values-Excluded-From-Count/m-p/1707140#M54215</link>
      <description>&lt;P&gt;May be this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Aggr(NODISTINCT 
    Count({1&amp;lt;[Encounter Number] = p({&amp;lt;[Encounter Number]&amp;gt;})&amp;gt;}[Encounter Number])
, [Patient ID])&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 01 Jun 2020 13:28:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Possible-Values-Excluded-From-Count/m-p/1707140#M54215</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-06-01T13:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Values Excluded From Count</title>
      <link>https://community.qlik.com/t5/App-Development/Possible-Values-Excluded-From-Count/m-p/1707143#M54216</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/61433"&gt;@sgagliardi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I would add your previous thread on the same issue assuming that would give others here a better understanding.&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-App-Development/Count-all-possible-from-alternate-state/m-p/1706358#M54154" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Sense-App-Development/Count-all-possible-from-alternate-state/m-p/1706358#M54154&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 13:35:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Possible-Values-Excluded-From-Count/m-p/1707143#M54216</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-06-01T13:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Values Excluded From Count</title>
      <link>https://community.qlik.com/t5/App-Development/Possible-Values-Excluded-From-Count/m-p/1707274#M54240</link>
      <description>&lt;P&gt;Hey Sunny,&lt;/P&gt;&lt;P&gt;Thank you for your help. As&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;has mentioned, I have a separate a separate thread pertaining to a similar issue. At the time I was thinking about them separately, but&amp;nbsp; have since recognized them to really be the same issue. On that thread I have since included a model app and more info about what I am trying to do.&lt;/P&gt;&lt;P&gt;Your suggestion is helpful, it gets me the count that I'm after when modified to be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Aggr(NODISTINCT 
    Count({1&amp;lt;[Patient ID] = p({&amp;lt;[Patient ID]&amp;gt;})&amp;gt;}[Encounter Number])
, [Patient ID])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other piece of this problem comes from returning this count in relation to a date range established by a user. For the [Patient ID](s) with [Encounter Number](s) included in a data selection, there is an [Admit Date] field that I am leveraging so that if a user set 30 days before, and 60 days after, a range is created wherein all other possible [Encounter Numbers] related to that [Patient ID] with an [Admit Date] occurring occurring in between the established date range, are counted. Attached is the model app I had provided in my other thread. Find that in cases where two [Patient IDs] (with separate [Encounter Numbers]) occur in the same data selection, the "Continuum" KPI fails to count encounters related to that [Patient ID]. Possibly because it is not sure which [Encounter Number] [Admit Date] to use.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 21:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Possible-Values-Excluded-From-Count/m-p/1707274#M54240</guid>
      <dc:creator>sgagliardi</dc:creator>
      <dc:date>2020-06-01T21:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Values Excluded From Count</title>
      <link>https://community.qlik.com/t5/App-Development/Possible-Values-Excluded-From-Count/m-p/1707970#M54320</link>
      <description>&lt;P&gt;Still no luck here. With further testing and having taken many more stabs at it, I've concluded my problem definitely has to do with how the [Patient Number]'s [Admit Date] is identified for cases where there are two or more [Encounter Number]s. I've been playing around with Min() and FirstSortedValue() on the [Admit Date] dimension, but with no luck as of yet.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 21:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Possible-Values-Excluded-From-Count/m-p/1707970#M54320</guid>
      <dc:creator>sgagliardi</dc:creator>
      <dc:date>2020-06-03T21:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Values Excluded From Count</title>
      <link>https://community.qlik.com/t5/App-Development/Possible-Values-Excluded-From-Count/m-p/1709246#M54447</link>
      <description>&lt;P&gt;Finally figured it out, solution added to other thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-App-Development/Count-all-possible-from-alternate-state/m-p/1706358#M54154" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-Sense-App-Development/Count-all-possible-from-alternate-state/m-p...&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 04:40:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Possible-Values-Excluded-From-Count/m-p/1709246#M54447</guid>
      <dc:creator>sgagliardi</dc:creator>
      <dc:date>2020-06-09T04:40:44Z</dc:date>
    </item>
  </channel>
</rss>

