<?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: ERROR: Summary functions nested in this way are not supported. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Summary-functions-nested-in-this-way-are-not-supported/m-p/931872#M366614</link>
    <description>&lt;P&gt;Do you want the most sold sku for every state, or just the overall highest order count and the state/sku combination associated with it?&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2024 09:52:38 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2024-06-12T09:52:38Z</dc:date>
    <item>
      <title>ERROR: Summary functions nested in this way are not supported.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Summary-functions-nested-in-this-way-are-not-supported/m-p/931594#M366474</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;proc sql;&lt;/DIV&gt;&lt;DIV class=""&gt;create table MostPopularRouterByState as&lt;/DIV&gt;&lt;DIV class=""&gt;select c.State, o.SKU, count(o.OrderID) as TotalOrders&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;from DATA_ELE.ORDERS o&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;inner join DATA_ELE.CUSTOMERS c on o.CustomerID = c.CustomerID&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;group by c.State, o.SKU&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;having calculated TotalOrders = (select max(calculated TotalOrders) from DATA_ELE.ORDERS o2&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;inner join DATA_ELE.CUSTOMERS c2 on o2.CustomerID = c2.CustomerID&lt;/DIV&gt;&lt;DIV class=""&gt;77 where c.State = c2.State&lt;/DIV&gt;&lt;DIV class=""&gt;78 group by c2.State, o2.SKU)&lt;/DIV&gt;&lt;DIV class=""&gt;79 order by c.State, TotalOrders desc;&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: Summary functions nested in this way are not supported.&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 Jun 2024 18:27:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Summary-functions-nested-in-this-way-are-not-supported/m-p/931594#M366474</guid>
      <dc:creator>carihuppert</dc:creator>
      <dc:date>2024-06-10T18:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Summary functions nested in this way are not supported.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Summary-functions-nested-in-this-way-are-not-supported/m-p/931649#M366501</link>
      <description>&lt;P&gt;Do you have a question?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 01:07:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Summary-functions-nested-in-this-way-are-not-supported/m-p/931649#M366501</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2024-06-11T01:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Summary functions nested in this way are not supported.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Summary-functions-nested-in-this-way-are-not-supported/m-p/931668#M366510</link>
      <description>&lt;P&gt;Your sub-query doesn't know about columns created in the outer query, so you need to replicate the logic from the outer query in your sub-query.&lt;/P&gt;
&lt;P&gt;I don't know your requirement, but I would guess you wnat to have a GROUP BY in your outer query, or what is your desired en result?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 09:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Summary-functions-nested-in-this-way-are-not-supported/m-p/931668#M366510</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2024-06-11T09:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Summary functions nested in this way are not supported.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Summary-functions-nested-in-this-way-are-not-supported/m-p/931872#M366614</link>
      <description>&lt;P&gt;Do you want the most sold sku for every state, or just the overall highest order count and the state/sku combination associated with it?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 09:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Summary-functions-nested-in-this-way-are-not-supported/m-p/931872#M366614</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-06-12T09:52:38Z</dc:date>
    </item>
  </channel>
</rss>

