<?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: SASVA count distinct of certain column in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SASVA-count-distinct-of-certain-column/m-p/691812#M14311</link>
    <description>Thanks for your answers, with AggregateTable it can probably do what I would want to do, unfortunately I'm on version 7.5.&lt;BR /&gt;&lt;BR /&gt;I want to know whether there is a signal for a company.&lt;BR /&gt;If I would build a query I would create an aggregated table with company_id and the sum of signals and another query to check if the signal=&amp;gt;1 then 1 else 0 for each company.&lt;BR /&gt;&lt;BR /&gt;Instead of creating a new datasource I would want to do it in an expression. If I can't use aggregatetable, is there another way?&lt;BR /&gt;</description>
    <pubDate>Thu, 15 Oct 2020 12:57:19 GMT</pubDate>
    <dc:creator>GreyHamster</dc:creator>
    <dc:date>2020-10-15T12:57:19Z</dc:date>
    <item>
      <title>SASVA count distinct of certain column</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SASVA-count-distinct-of-certain-column/m-p/691547#M14306</link>
      <description>&lt;P&gt;I have the following data, I'd like to create a report with a cross table.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;rec_id&lt;/TD&gt;&lt;TD&gt;company_id&lt;/TD&gt;&lt;TD&gt;signals&lt;/TD&gt;&lt;TD&gt;month&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;October&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;October&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;October&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1003&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;October&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1004&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;October&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1005&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;October&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;In the report I would like to have&lt;/P&gt;&lt;P&gt;the count of the rec_id&lt;/P&gt;&lt;P&gt;the distinct count of company_id (which I did with aggregated value and distinct)&lt;/P&gt;&lt;P&gt;the sum of signals&lt;/P&gt;&lt;P&gt;a signal per company_id so for company A 1 signal, B 1 signal (not 2 signals) and C 1 signal&lt;/P&gt;&lt;P&gt;The signal column doesn't have values more than 1.&lt;/P&gt;&lt;P&gt;How can I create such an aggregated value?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 14:32:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SASVA-count-distinct-of-certain-column/m-p/691547#M14306</guid>
      <dc:creator>GreyHamster</dc:creator>
      <dc:date>2020-10-14T14:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: SASVA count distinct of certain column</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SASVA-count-distinct-of-certain-column/m-p/691769#M14309</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/144520"&gt;@GreyHamster&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Which version of VA you have?&lt;/LI&gt;
&lt;LI&gt;You mentioned that you'd like to&amp;nbsp;&lt;SPAN&gt;create a report with a cross table.&amp;nbsp;&lt;/SPAN&gt;How should the resulting cross table look like? Could you sketch it?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Creating needed variables:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the count of the &lt;FONT face="courier new,courier"&gt;rec_id&lt;/FONT&gt;&lt;BR /&gt;Hover mouse over &lt;FONT face="courier new,courier"&gt;rec_id&lt;/FONT&gt;&amp;nbsp;&amp;gt; click r-m-b &amp;gt; New calculation... &amp;gt; Type = Count&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;the distinct count of &lt;FONT face="courier new,courier"&gt;company_id&lt;/FONT&gt; (which I did with aggregated value and distinct)&lt;BR /&gt;&lt;/SPAN&gt;Hover mouse over &lt;SPAN style="font-family: inherit;"&gt;&lt;FONT face="courier new,courier"&gt;company_id&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;gt; click r-m-b &amp;gt; New calculation... &amp;gt; Type = Distinct Count&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;the sum of &lt;FONT face="courier new,courier"&gt;signals&lt;BR /&gt;&lt;/FONT&gt;&lt;/SPAN&gt;Check that measures aggregation is Sum&lt;/LI&gt;
&lt;LI&gt;a signal per company_id so for company A 1 signal, B 1 signal (not 2 signals) and C 1 signal&lt;BR /&gt;I'm not sure if I understand this. Will the result be always 1? Is there any possibility that it will be zero or something else?&amp;nbsp;If it is always one then let's just create a New Calculated Item with simple 1 and set aggregation to Min or Max. If it's something else we might need utilize AggregateTableI() operator. And finally how should this result be embedded to the Cross table&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Petri&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 08:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SASVA-count-distinct-of-certain-column/m-p/691769#M14309</guid>
      <dc:creator>PetriRoine</dc:creator>
      <dc:date>2020-10-15T08:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: SASVA count distinct of certain column</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SASVA-count-distinct-of-certain-column/m-p/691812#M14311</link>
      <description>Thanks for your answers, with AggregateTable it can probably do what I would want to do, unfortunately I'm on version 7.5.&lt;BR /&gt;&lt;BR /&gt;I want to know whether there is a signal for a company.&lt;BR /&gt;If I would build a query I would create an aggregated table with company_id and the sum of signals and another query to check if the signal=&amp;gt;1 then 1 else 0 for each company.&lt;BR /&gt;&lt;BR /&gt;Instead of creating a new datasource I would want to do it in an expression. If I can't use aggregatetable, is there another way?&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Oct 2020 12:57:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SASVA-count-distinct-of-certain-column/m-p/691812#M14311</guid>
      <dc:creator>GreyHamster</dc:creator>
      <dc:date>2020-10-15T12:57:19Z</dc:date>
    </item>
  </channel>
</rss>

