<?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: Change max and min cell color in a row in proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-max-and-min-cell-color-in-a-row-in-proc-report/m-p/417032#M19925</link>
    <description>&lt;P&gt;&lt;STRONG&gt;compute total;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;---&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;compute min1;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if total = min1 then call define ('total','&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2017 12:53:15 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2017-11-29T12:53:15Z</dc:date>
    <item>
      <title>Change max and min cell color in a row in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-max-and-min-cell-color-in-a-row-in-proc-report/m-p/417005#M19922</link>
      <description>&lt;P&gt;Hello, everyone!&lt;/P&gt;&lt;P&gt;I need to find the maximum and minimum values in the lines and highlight them in different colors, how is this best done?&lt;/P&gt;&lt;P&gt;I can not compare two columns in compute function.&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;proc report data=work.newtemp nowd;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;columns total maxtotal Mintotal meantotal min1;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;define total / order format=nlnum10.;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;compute total;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if total = min1 then call define (_col_,'style','style={foreground=green font_weight=bold font_size=14pt}');&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;endcomp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;Obs TOTAL mintotal maxtotal meantotal min1 &lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;7046&lt;/TD&gt;&lt;TD&gt;5907&lt;/TD&gt;&lt;TD&gt;8421&lt;/TD&gt;&lt;TD&gt;6937.71&lt;/TD&gt;&lt;TD&gt;6937.71&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;6071&lt;/TD&gt;&lt;TD&gt;5907&lt;/TD&gt;&lt;TD&gt;8421&lt;/TD&gt;&lt;TD&gt;6937.71&lt;/TD&gt;&lt;TD&gt;6071.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;5907&lt;/TD&gt;&lt;TD&gt;5907&lt;/TD&gt;&lt;TD&gt;8421&lt;/TD&gt;&lt;TD&gt;6937.71&lt;/TD&gt;&lt;TD&gt;5907.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;7094&lt;/TD&gt;&lt;TD&gt;5907&lt;/TD&gt;&lt;TD&gt;8421&lt;/TD&gt;&lt;TD&gt;6937.71&lt;/TD&gt;&lt;TD&gt;6937.71&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;7910&lt;/TD&gt;&lt;TD&gt;5907&lt;/TD&gt;&lt;TD&gt;8421&lt;/TD&gt;&lt;TD&gt;6937.71&lt;/TD&gt;&lt;TD&gt;6937.71&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;6115&lt;/TD&gt;&lt;TD&gt;5907&lt;/TD&gt;&lt;TD&gt;8421&lt;/TD&gt;&lt;TD&gt;6937.71&lt;/TD&gt;&lt;TD&gt;6115.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 10:15:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-max-and-min-cell-color-in-a-row-in-proc-report/m-p/417005#M19922</guid>
      <dc:creator>DavidBesaev</dc:creator>
      <dc:date>2017-11-29T10:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change max and min cell color in a row in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-max-and-min-cell-color-in-a-row-in-proc-report/m-p/417021#M19923</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;instead of using _col_ to define the color, use _row_ which will color specific cell rather than the whole column</description>
      <pubDate>Wed, 29 Nov 2017 11:42:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-max-and-min-cell-color-in-a-row-in-proc-report/m-p/417021#M19923</guid>
      <dc:creator>RM6</dc:creator>
      <dc:date>2017-11-29T11:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Change max and min cell color in a row in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-max-and-min-cell-color-in-a-row-in-proc-report/m-p/417023#M19924</link>
      <description>Hi, thx for your answer!&lt;BR /&gt;&lt;BR /&gt;It doesn't change color anywhere, if i write:&lt;BR /&gt;compute total;&lt;BR /&gt;if total = 5907 then call define (_row_,'style','style={foreground=green font_weight=bold font_size=14pt}');&lt;BR /&gt;endcomp;&lt;BR /&gt;it works, but if I want to compare the columns, nothing happens.&lt;BR /&gt;How do I compare the values of the columns line by line in compute step?&lt;BR /&gt;Thank you!</description>
      <pubDate>Wed, 29 Nov 2017 11:49:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-max-and-min-cell-color-in-a-row-in-proc-report/m-p/417023#M19924</guid>
      <dc:creator>DavidBesaev</dc:creator>
      <dc:date>2017-11-29T11:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Change max and min cell color in a row in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-max-and-min-cell-color-in-a-row-in-proc-report/m-p/417032#M19925</link>
      <description>&lt;P&gt;&lt;STRONG&gt;compute total;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;---&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;compute min1;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if total = min1 then call define ('total','&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 12:53:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-max-and-min-cell-color-in-a-row-in-proc-report/m-p/417032#M19925</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-11-29T12:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change max and min cell color in a row in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-max-and-min-cell-color-in-a-row-in-proc-report/m-p/417052#M19926</link>
      <description>It works, if "min1" will be before "total" and add define for min1 as display! Thank you!&lt;BR /&gt;&lt;BR /&gt;proc report data=work.norper nowd;&lt;BR /&gt;columns min1 total maxtotal Mintotal meantotal ;&lt;BR /&gt;define total / display format=nlnum10.;&lt;BR /&gt;define min1 / display format=nlnum10.;&lt;BR /&gt;compute total;&lt;BR /&gt;if total=min1 then call define (_col_,'style','style={foreground=green font_weight=bold font_size=14pt}');&lt;BR /&gt;endcomp;&lt;BR /&gt;quit;</description>
      <pubDate>Wed, 29 Nov 2017 14:02:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-max-and-min-cell-color-in-a-row-in-proc-report/m-p/417052#M19926</guid>
      <dc:creator>DavidBesaev</dc:creator>
      <dc:date>2017-11-29T14:02:36Z</dc:date>
    </item>
  </channel>
</rss>

