<?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: Count Distinct as measure in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Distinct-as-measure/m-p/772964#M15399</link>
    <description>&lt;P&gt;Hi acordes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a new distinct count from my ID category. and it has placed it under aggregate measure. I now created a new calculated item using aggregate table. I am getting errors. I am not sure if i am doing it the correct way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kamohelo_0-1633683058890.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64507i1460B8E233E0F4AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kamohelo_0-1633683058890.png" alt="Kamohelo_0-1633683058890.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your assistance is greatly appreciated&lt;/P&gt;</description>
    <pubDate>Fri, 08 Oct 2021 08:51:57 GMT</pubDate>
    <dc:creator>Kamohelo</dc:creator>
    <dc:date>2021-10-08T08:51:57Z</dc:date>
    <item>
      <title>Count Distinct as measure</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Distinct-as-measure/m-p/772954#M15397</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;I would like to create a distinct count from a category data item as a measure. I would want to use this in a calculation. Is this possible to achieve within VA?</description>
      <pubDate>Fri, 08 Oct 2021 08:25:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Distinct-as-measure/m-p/772954#M15397</guid>
      <dc:creator>Kamohelo</dc:creator>
      <dc:date>2021-10-08T08:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Count Distinct as measure</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Distinct-as-measure/m-p/772957#M15398</link>
      <description>&lt;P&gt;I think after creating the count distinct variable you'll need to "fix" it by creating an aggregated table with this variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The aggregated table allows you to make calculations with it, in the original table it will result most likely in an error saying "you cannot do this with a aggregated measure"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this trick iften helps.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 08:34:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Distinct-as-measure/m-p/772957#M15398</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2021-10-08T08:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count Distinct as measure</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Distinct-as-measure/m-p/772964#M15399</link>
      <description>&lt;P&gt;Hi acordes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a new distinct count from my ID category. and it has placed it under aggregate measure. I now created a new calculated item using aggregate table. I am getting errors. I am not sure if i am doing it the correct way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kamohelo_0-1633683058890.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64507i1460B8E233E0F4AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kamohelo_0-1633683058890.png" alt="Kamohelo_0-1633683058890.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your assistance is greatly appreciated&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 08:51:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Distinct-as-measure/m-p/772964#M15399</guid>
      <dc:creator>Kamohelo</dc:creator>
      <dc:date>2021-10-08T08:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Count Distinct as measure</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Distinct-as-measure/m-p/772967#M15400</link>
      <description>&lt;P&gt;That's what I meant when saying that it will throw out an error.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to make an aggregated table carrying over this newly created distinct count variable (plus the other variables you need).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There you can use it as a static variable in your calculations.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 08:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Distinct-as-measure/m-p/772967#M15400</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2021-10-08T08:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count Distinct as measure</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Distinct-as-measure/m-p/772969#M15401</link>
      <description>&lt;P&gt;Hi Acordes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide me with an example on how to perform this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 09:07:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Distinct-as-measure/m-p/772969#M15401</guid>
      <dc:creator>Kamohelo</dc:creator>
      <dc:date>2021-10-08T09:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count Distinct as measure</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Distinct-as-measure/m-p/772972#M15402</link>
      <description>&lt;P&gt;I cannot access sas viya in these moments.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the steps are:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;create distinct count of your categorical variable&lt;/LI&gt;
&lt;LI&gt;create an aggregation of your table (go to data, choose your table, right click on create aggregation of this table)
&lt;OL&gt;
&lt;LI&gt;select your variables of interest plus the distinct count variable&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;once created the new aggregated table create calculated measure using the distinct count variable which had been transfered from the original table. now it behaves like a measure&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 08 Oct 2021 09:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Distinct-as-measure/m-p/772972#M15402</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2021-10-08T09:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count Distinct as measure</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Distinct-as-measure/m-p/792845#M15776</link>
      <description>&lt;P&gt;In older versions of SAS you didn't have to create a whole different data table just to create a simple distinct count.&amp;nbsp; There should be an easier way to do this.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 13:29:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Count-Distinct-as-measure/m-p/792845#M15776</guid>
      <dc:creator>jtelesco70</dc:creator>
      <dc:date>2022-01-27T13:29:28Z</dc:date>
    </item>
  </channel>
</rss>

