<?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: Distinct Subpopulation Divided by Distinct Population in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Distinct-Subpopulation-Divided-by-Distinct-Population/m-p/718901#M14652</link>
    <description>&lt;P&gt;I'm investigating options involving subtracting out the values that would be missing.&amp;nbsp; Investigating functions like nummiss.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2021 14:43:41 GMT</pubDate>
    <dc:creator>DavidPhillips2</dc:creator>
    <dc:date>2021-02-12T14:43:41Z</dc:date>
    <item>
      <title>Distinct Subpopulation Divided by Distinct Population</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Distinct-Subpopulation-Divided-by-Distinct-Population/m-p/718358#M14642</link>
      <description>&lt;P&gt;I’m trying to display the distinct count of a population where a particular condition in the record is true.&amp;nbsp; My text in the edit calculated item of VA Report Editor is:&lt;/P&gt;
&lt;P&gt;IF ( 'REAL Numeric'n = 1 )&lt;/P&gt;
&lt;P&gt;RETURN Distinct [_ByGroup_] ('Random ID'n[Formatted])&lt;/P&gt;
&lt;P&gt;ELSE 0&lt;/P&gt;
&lt;P&gt;The goal is to produce the distinct count of the student population where a condition is true divided by the distinct count of the student population and show it as a static or sometimes referred to as a key value.&lt;/P&gt;
&lt;P&gt;For some reason, the result of this is 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since this is for a dashboard I cannot just display both numbers in tabular format.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 19:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Distinct-Subpopulation-Divided-by-Distinct-Population/m-p/718358#M14642</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2021-02-10T19:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Subpopulation Divided by Distinct Population</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Distinct-Subpopulation-Divided-by-Distinct-Population/m-p/718646#M14645</link>
      <description>&lt;P&gt;With this syntax the is = 1 is being compared to the aggregated set, so that logic doesn't work.&lt;/P&gt;
&lt;P&gt;I've been playing with the notmissing function to see if there is a way to remove the missing values.&lt;/P&gt;
&lt;P&gt;The if only has a if else function, if I could drop the else it would work.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 16:06:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Distinct-Subpopulation-Divided-by-Distinct-Population/m-p/718646#M14645</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2021-02-11T16:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Subpopulation Divided by Distinct Population</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Distinct-Subpopulation-Divided-by-Distinct-Population/m-p/718901#M14652</link>
      <description>&lt;P&gt;I'm investigating options involving subtracting out the values that would be missing.&amp;nbsp; Investigating functions like nummiss.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 14:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Distinct-Subpopulation-Divided-by-Distinct-Population/m-p/718901#M14652</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2021-02-12T14:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Subpopulation Divided by Distinct Population</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Distinct-Subpopulation-Divided-by-Distinct-Population/m-p/718943#M14653</link>
      <description>&lt;P&gt;David,&lt;/P&gt;
&lt;P&gt;I was able to get it to work. This is what my sample data looked like.&amp;nbsp; It started off with just RandomIDChar and Real.&amp;nbsp; &amp;nbsp;I assume that your goal is to get one value and add it to a Key Value object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KeithM_0-1613147909715.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54655i5EDE01C6B478B8E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="KeithM_0-1613147909715.png" alt="KeithM_0-1613147909715.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Calculations:&lt;/P&gt;
&lt;P&gt;Step #1: Create your new character data item based on your filter criteria:&lt;/P&gt;
&lt;P&gt;Name: RandomIDNew&lt;BR /&gt;Calculation:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KeithM_1-1613148024416.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54656i73EDB9918E088D41/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KeithM_1-1613148024416.png" alt="KeithM_1-1613148024416.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step #2: Numerator: (Note: NumMiss will calculate the number of items that are missing. If there are any missing, then we need to subtract that one distinct count from the resulting distinct count calculation)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KeithM_2-1613148059317.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54657i80524F7DD45E7CAD/image-size/large?v=v2&amp;amp;px=999" role="button" title="KeithM_2-1613148059317.png" alt="KeithM_2-1613148059317.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Step #3:&amp;nbsp; Denominator:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KeithM_3-1613148075254.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54658iD5D665BBA4ABB95E/image-size/large?v=v2&amp;amp;px=999" role="button" title="KeithM_3-1613148075254.png" alt="KeithM_3-1613148075254.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Step #4:&amp;nbsp; Create Percent&amp;nbsp; (Note:&amp;nbsp; step 2,3 &amp;amp; 4 could all be just one calculation)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KeithM_4-1613148337130.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54659iC753A5D3AB6BBEEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KeithM_4-1613148337130.png" alt="KeithM_4-1613148337130.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 16:46:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Distinct-Subpopulation-Divided-by-Distinct-Population/m-p/718943#M14653</guid>
      <dc:creator>KeithM</dc:creator>
      <dc:date>2021-02-12T16:46:49Z</dc:date>
    </item>
  </channel>
</rss>

