<?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 Max values not working in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/404936#M66950</link>
    <description>Hi i have a table that sums 7 differ denominations into a total i need to group it by only the max values&lt;BR /&gt;Proc sql;&lt;BR /&gt;Create table table1 as&lt;BR /&gt;(Select&lt;BR /&gt;Id,&lt;BR /&gt;Date,&lt;BR /&gt;Type,&lt;BR /&gt;1 amt,&lt;BR /&gt;2 amt,&lt;BR /&gt;5 amt&lt;BR /&gt;10 amt,&lt;BR /&gt;20 amt,&lt;BR /&gt;50 smt&lt;BR /&gt;100 amt&lt;BR /&gt;Max (1 amt,2amt,5amt,10amt,20amt,50amt,100amt) as max&lt;BR /&gt;Ftom data&lt;BR /&gt;Group by type);&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;It should sum all tge denom than get tge max by type&lt;BR /&gt;</description>
    <pubDate>Tue, 17 Oct 2017 18:56:54 GMT</pubDate>
    <dc:creator>Gil_</dc:creator>
    <dc:date>2017-10-17T18:56:54Z</dc:date>
    <item>
      <title>Max values not working</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/404936#M66950</link>
      <description>Hi i have a table that sums 7 differ denominations into a total i need to group it by only the max values&lt;BR /&gt;Proc sql;&lt;BR /&gt;Create table table1 as&lt;BR /&gt;(Select&lt;BR /&gt;Id,&lt;BR /&gt;Date,&lt;BR /&gt;Type,&lt;BR /&gt;1 amt,&lt;BR /&gt;2 amt,&lt;BR /&gt;5 amt&lt;BR /&gt;10 amt,&lt;BR /&gt;20 amt,&lt;BR /&gt;50 smt&lt;BR /&gt;100 amt&lt;BR /&gt;Max (1 amt,2amt,5amt,10amt,20amt,50amt,100amt) as max&lt;BR /&gt;Ftom data&lt;BR /&gt;Group by type);&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;It should sum all tge denom than get tge max by type&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Oct 2017 18:56:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/404936#M66950</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2017-10-17T18:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Max values not working</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/404940#M66951</link>
      <description>&lt;P&gt;MAX() in PROC SQL works in two ways.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have multiple variables, it operates row wise and takes the max of the variables listed for each row.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a single variable, it takes the maximum of that column.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 19:00:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/404940#M66951</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-17T19:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Max values not working</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/404959#M66952</link>
      <description>I have mulitple variables so i did a max like my example above... my output&lt;BR /&gt;&lt;BR /&gt;Id. A1.&lt;BR /&gt;date 10/12/13&lt;BR /&gt;type. Plus&lt;BR /&gt;1 amt 0&lt;BR /&gt;2 amt 0&lt;BR /&gt;5 amt 0&lt;BR /&gt;10 amt 10&lt;BR /&gt;20 amt. 15&lt;BR /&gt;50 amt 0&lt;BR /&gt;100 amt 0&lt;BR /&gt;total 35&lt;BR /&gt;Id a1&lt;BR /&gt;date 10/12/13&lt;BR /&gt;type. Plus&lt;BR /&gt;1 amt 0&lt;BR /&gt;2 amt 0&lt;BR /&gt;5 amt 0&lt;BR /&gt;10 amt 30&lt;BR /&gt;20 amt. 40&lt;BR /&gt;50 amt 0&lt;BR /&gt;100 amt 0&lt;BR /&gt;total 70&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I need the table that eq 70 tge data is horizontal to fit</description>
      <pubDate>Tue, 17 Oct 2017 19:28:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/404959#M66952</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2017-10-17T19:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Max values not working</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/404964#M66953</link>
      <description>I don't understand any of that, sorry.</description>
      <pubDate>Tue, 17 Oct 2017 19:36:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/404964#M66953</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-17T19:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Max values not working</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/405009#M66954</link>
      <description>Sorry reeza&lt;BR /&gt;My out put&lt;BR /&gt;Id. Date. Tyoe 20 amt 50amt 100 ant. Total&lt;BR /&gt;A1. 10/12/17. Pull. 10. 30. 40. 80&lt;BR /&gt;a1. 10/12/17. Pull. 20. 20. 20. 60&lt;BR /&gt;A1. 20/12/17. Pull. 30. 50. 60. 140&lt;BR /&gt;&lt;BR /&gt;1st 2 entries are entry 3rd it sum botg i need fhe 3td optoon</description>
      <pubDate>Tue, 17 Oct 2017 20:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/405009#M66954</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2017-10-17T20:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Max values not working</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/405023#M66955</link>
      <description>&lt;P&gt;Sorry, that's still unclear.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 21:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/405023#M66955</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-17T21:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Max values not working</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/405027#M66956</link>
      <description />
      <pubDate>Tue, 17 Oct 2017 21:20:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/405027#M66956</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2017-10-17T21:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Max values not working</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/405056#M66957</link>
      <description>I just need the 3rd entry where the total ewuals 140</description>
      <pubDate>Tue, 17 Oct 2017 23:12:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/405056#M66957</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2017-10-17T23:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Max values not working</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/405057#M66958</link>
      <description>Its ok reeza thanks gor help i fig it out whst a relief</description>
      <pubDate>Tue, 17 Oct 2017 23:15:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Max-values-not-working/m-p/405057#M66958</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2017-10-17T23:15:56Z</dc:date>
    </item>
  </channel>
</rss>

