<?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 Where can I use sql caluculated(derived column) in SAS DI in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Where-can-I-use-sql-caluculated-derived-column-in-SAS-DI/m-p/685905#M19570</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;In SAS DI, where can I use calculated column(newly derived in the same block) in SAS DI.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 22 Sep 2020 23:15:39 GMT</pubDate>
    <dc:creator>VVDR</dc:creator>
    <dc:date>2020-09-22T23:15:39Z</dc:date>
    <item>
      <title>Where can I use sql caluculated(derived column) in SAS DI</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Where-can-I-use-sql-caluculated-derived-column-in-SAS-DI/m-p/685905#M19570</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;In SAS DI, where can I use calculated column(newly derived in the same block) in SAS DI.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 23:15:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Where-can-I-use-sql-caluculated-derived-column-in-SAS-DI/m-p/685905#M19570</guid>
      <dc:creator>VVDR</dc:creator>
      <dc:date>2020-09-22T23:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I use sql calculated(derived column) in SAS DI</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Where-can-I-use-sql-caluculated-derived-column-in-SAS-DI/m-p/685924#M19571</link>
      <description>&lt;P&gt;Hi VVDR,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I mean you are referring calculated column in SQL and applying in SQL or Extract transformation.&lt;/P&gt;
&lt;P&gt;As in normal SQL, calculated columns are created using aggregated functions. You can use them in output under "select" part of SQL with user defined name for column or under "Having" part of SQL to filter after calculation. Under Having part, referring column name defined in select part for aggregate function need to be prefixed with "Calculated" word.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Same applies in DI Studio, navigate to the SQL transformation to select =&amp;gt; mappings there you can create new column and write the aggregate function under expression.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 02:09:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Where-can-I-use-sql-caluculated-derived-column-in-SAS-DI/m-p/685924#M19571</guid>
      <dc:creator>Rama_V</dc:creator>
      <dc:date>2020-09-23T02:09:32Z</dc:date>
    </item>
  </channel>
</rss>

