<?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: Discard duplicate row which has same unique key in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Discard-duplicate-row-which-has-same-unique-key/m-p/309198#M5752</link>
    <description>Data Builder is basically SQL. I don't know the nature of your data and the duplicates so I can't tell if it suits your needs. &lt;BR /&gt;SQL let you reduce granularity using either Group by or Select Distinct.</description>
    <pubDate>Fri, 04 Nov 2016 07:31:09 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-11-04T07:31:09Z</dc:date>
    <item>
      <title>Discard duplicate row which has same unique key</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Discard-duplicate-row-which-has-same-unique-key/m-p/308700#M5739</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently when I run my query, there are cases whereby there will be duplicate rows (with only one data item is different, not critical)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below is the example (ID is the unique key):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Data&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID &amp;nbsp; &amp;nbsp; Name &amp;nbsp; &amp;nbsp; &amp;nbsp;Date &amp;nbsp;&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; joe &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11/11/11&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; joe &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12/11/11&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; Mary &amp;nbsp; &amp;nbsp; &amp;nbsp; 11/11/11&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; Jane &amp;nbsp; &amp;nbsp; &amp;nbsp; 12/12/11&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; Jane &amp;nbsp; &amp;nbsp; &amp;nbsp; 13/12/11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope to achieve&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ID &amp;nbsp; &amp;nbsp; Name &amp;nbsp; &amp;nbsp; &amp;nbsp;Date &amp;nbsp;&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; joe &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11/11/11&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; Mary &amp;nbsp; &amp;nbsp; &amp;nbsp; 11/11/11&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; Jane &amp;nbsp; &amp;nbsp; &amp;nbsp; 12/12/11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In SAS VA data query, what should I do in order to achieve that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 08:14:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Discard-duplicate-row-which-has-same-unique-key/m-p/308700#M5739</guid>
      <dc:creator>spiritgate</dc:creator>
      <dc:date>2016-11-02T08:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Discard duplicate row which has same unique key</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Discard-duplicate-row-which-has-same-unique-key/m-p/308751#M5742</link>
      <description>&lt;P&gt;Try this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=[Original Data];&lt;/P&gt;&lt;P&gt;by id date;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data [New Data];&lt;/P&gt;&lt;P&gt;set [Original Data];&lt;/P&gt;&lt;P&gt;by id;&lt;/P&gt;&lt;P&gt;if first.id then unique=1;&lt;/P&gt;&lt;P&gt;if unique=1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 14:13:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Discard-duplicate-row-which-has-same-unique-key/m-p/308751#M5742</guid>
      <dc:creator>rcrs2</dc:creator>
      <dc:date>2016-11-02T14:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Discard duplicate row which has same unique key</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Discard-duplicate-row-which-has-same-unique-key/m-p/308945#M5746</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/112975"&gt;@rcrs2&lt;/a&gt; that code is for Base SAS, not VA.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/90564"&gt;@spiritgate&lt;/a&gt; VA is mainly for reporting and exploration. What you are asking for is more of data transformation/scrubbing. Is it for a specific report you need to this or is it a general problem with this data set? In my mind if you have duplicates in the data it's not fit for analysis, so perhaps you need to remove the duplicates prior to loading to LASR, perhaps by using &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/112975"&gt;@rcrs2&lt;/a&gt; program.</description>
      <pubDate>Thu, 03 Nov 2016 07:13:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Discard-duplicate-row-which-has-same-unique-key/m-p/308945#M5746</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-11-03T07:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Discard duplicate row which has same unique key</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Discard-duplicate-row-which-has-same-unique-key/m-p/309009#M5747</link>
      <description>&lt;P&gt;Thank you for pointing it out. I didn't recognized that it was posted in VA.&amp;nbsp;&lt;img id="manwink" class="emoticon emoticon-manwink" src="https://communities.sas.com/i/smilies/16x16_man-wink.png" alt="Man Wink" title="Man Wink" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 13:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Discard-duplicate-row-which-has-same-unique-key/m-p/309009#M5747</guid>
      <dc:creator>rcrs2</dc:creator>
      <dc:date>2016-11-03T13:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Discard duplicate row which has same unique key</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Discard-duplicate-row-which-has-same-unique-key/m-p/309170#M5750</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH﻿&lt;/a&gt;&amp;nbsp;Thanks for the reply. The requirement is for specific graph. So in the data query (SAS VA), we can sniff out this kind of requirement?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 02:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Discard-duplicate-row-which-has-same-unique-key/m-p/309170#M5750</guid>
      <dc:creator>spiritgate</dc:creator>
      <dc:date>2016-11-04T02:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Discard duplicate row which has same unique key</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Discard-duplicate-row-which-has-same-unique-key/m-p/309198#M5752</link>
      <description>Data Builder is basically SQL. I don't know the nature of your data and the duplicates so I can't tell if it suits your needs. &lt;BR /&gt;SQL let you reduce granularity using either Group by or Select Distinct.</description>
      <pubDate>Fri, 04 Nov 2016 07:31:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Discard-duplicate-row-which-has-same-unique-key/m-p/309198#M5752</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-11-04T07:31:09Z</dc:date>
    </item>
  </channel>
</rss>

