<?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: Aggregating {1} back To Selected Dimensions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggregating-1-back-To-Selected-Dimensions/m-p/1828609#M68280</link>
    <description>&lt;P&gt;Thank you &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/146379"&gt;@stevejoyce&lt;/a&gt;&amp;nbsp;&amp;nbsp;for your reply.&lt;/P&gt;&lt;P&gt;I had experimented with p() in the set analysis as well, but I am getting the same result. It will only return a partial count in my table, unless null()s are turned on for that dimension, in which case all orphaned rows are summed under a null() row rather than be distributed back across the attending physician values of the selected patient id attending physician value.&lt;/P&gt;&lt;P&gt;To maybe clarify the problem further, let's say my data looks something like this:&lt;/P&gt;&lt;P&gt;[Patient ID],[Patient Encounter],[Attending Physician Name]&lt;/P&gt;&lt;P&gt;Bob, 27382, Dr. Fred&lt;/P&gt;&lt;P&gt;Sally, 27372, Dr. Fred&lt;/P&gt;&lt;P&gt;Dan, 37648, Dr. Rose&lt;/P&gt;&lt;P&gt;Bob, 64830, Dr. Albert&lt;/P&gt;&lt;P&gt;Bob, 53729, Dr. Rose&lt;/P&gt;&lt;P&gt;Sally, 37293, Dr. Fred&lt;/P&gt;&lt;P&gt;What I would like to have happen, is when I have made a selection on [Patient Encounter] '27382' to see in my table:&lt;/P&gt;&lt;P&gt;Dr. Fred | 3&lt;/P&gt;&lt;P&gt;I want for when I select the [Patient Encounter] '27382' associated with [Patient ID] 'Bob', for all encounters that Bob has (3 total) to tally beneath the attending physician of the patient encounter I actually have selected.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Aug 2021 22:09:25 GMT</pubDate>
    <dc:creator>sgagliardi</dc:creator>
    <dc:date>2021-08-13T22:09:25Z</dc:date>
    <item>
      <title>Aggregating {1} back To Selected Dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregating-1-back-To-Selected-Dimensions/m-p/1828589#M68275</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have what seems like a simple enough problem to solve, but I can't seem to crack it...&lt;/P&gt;&lt;P&gt;I am working on a dashboard where a user would establish an index selection of records through their selections, but be able to see rates, metrics, and measures against particular dimensions of the selected that factor in data and dimensions that may be excluded from the selections. I am trying to pull this all into a straight table object.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;I want to see a list of attending physicians as my dimension in a table for whatever population of patient encounters that I have selected currently. As my measure, I would like to see a count of all encounters for the patients I have selected,&amp;nbsp; but aggregated back to the original list of attending physicians I have in my first column. These encounter records may or may not have the same attending physicians, but have the same patient ID associated with them.&lt;/P&gt;&lt;P&gt;In column 1 I have the following expression in place to show only those attending physicians associated with my selections:&lt;/P&gt;&lt;P&gt;=aggr(if(count(distinct [Patient ID])&amp;gt;0,[Attending Physician Name]),[Attending Physician Name])&lt;/P&gt;&lt;P&gt;I have null() excluded here, so that when I add my count measure, a null() row will not present.&lt;/P&gt;&lt;P&gt;In column 2 I have the follow expression to return the count of all encounters for the patients captured by my selections:&lt;/P&gt;&lt;P&gt;=aggr(count({1}distinct [Patient Encounter]),[Patient ID])&lt;/P&gt;&lt;P&gt;I want to aggregate the full count back to the original physician rows associated with the patient id in my selection, but I'm finding that those encounters with physicians outside of my selection are being excluded from the measure because I have suppressed null() on this dimension, and that is how they would be categorized.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 19:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregating-1-back-To-Selected-Dimensions/m-p/1828589#M68275</guid>
      <dc:creator>sgagliardi</dc:creator>
      <dc:date>2021-08-13T19:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating {1} back To Selected Dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregating-1-back-To-Selected-Dimensions/m-p/1828597#M68278</link>
      <description>&lt;P&gt;I don't 100% follow.&amp;nbsp; But if user is selecting&amp;nbsp;&lt;SPAN&gt;[Attending Physician Name], you can have...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;count({1 &amp;lt;[Attending Physician Name] = P([Attending Physician Name])&amp;gt; } [Patient Encounter])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to re-apply the&amp;nbsp;[Attending Physician Name] filter.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 20:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregating-1-back-To-Selected-Dimensions/m-p/1828597#M68278</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-08-13T20:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating {1} back To Selected Dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregating-1-back-To-Selected-Dimensions/m-p/1828609#M68280</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/146379"&gt;@stevejoyce&lt;/a&gt;&amp;nbsp;&amp;nbsp;for your reply.&lt;/P&gt;&lt;P&gt;I had experimented with p() in the set analysis as well, but I am getting the same result. It will only return a partial count in my table, unless null()s are turned on for that dimension, in which case all orphaned rows are summed under a null() row rather than be distributed back across the attending physician values of the selected patient id attending physician value.&lt;/P&gt;&lt;P&gt;To maybe clarify the problem further, let's say my data looks something like this:&lt;/P&gt;&lt;P&gt;[Patient ID],[Patient Encounter],[Attending Physician Name]&lt;/P&gt;&lt;P&gt;Bob, 27382, Dr. Fred&lt;/P&gt;&lt;P&gt;Sally, 27372, Dr. Fred&lt;/P&gt;&lt;P&gt;Dan, 37648, Dr. Rose&lt;/P&gt;&lt;P&gt;Bob, 64830, Dr. Albert&lt;/P&gt;&lt;P&gt;Bob, 53729, Dr. Rose&lt;/P&gt;&lt;P&gt;Sally, 37293, Dr. Fred&lt;/P&gt;&lt;P&gt;What I would like to have happen, is when I have made a selection on [Patient Encounter] '27382' to see in my table:&lt;/P&gt;&lt;P&gt;Dr. Fred | 3&lt;/P&gt;&lt;P&gt;I want for when I select the [Patient Encounter] '27382' associated with [Patient ID] 'Bob', for all encounters that Bob has (3 total) to tally beneath the attending physician of the patient encounter I actually have selected.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 22:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregating-1-back-To-Selected-Dimensions/m-p/1828609#M68280</guid>
      <dc:creator>sgagliardi</dc:creator>
      <dc:date>2021-08-13T22:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating {1} back To Selected Dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregating-1-back-To-Selected-Dimensions/m-p/1828615#M68281</link>
      <description>&lt;P&gt;I came up with the following solution on the dimension, that seems to work well:&lt;/P&gt;&lt;P&gt;=aggr(only({&amp;lt;[Patient Encounter]=P([Patient Encounter])&amp;gt;}if(aggr(rank(-[Patient Encounter]),[Patient ID],[Patient Encounter])=1,[Attending Physician Name])),[Patient ID])&lt;/P&gt;</description>
      <pubDate>Sat, 14 Aug 2021 03:34:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregating-1-back-To-Selected-Dimensions/m-p/1828615#M68281</guid>
      <dc:creator>sgagliardi</dc:creator>
      <dc:date>2021-08-14T03:34:27Z</dc:date>
    </item>
  </channel>
</rss>

