<?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 Change color of data row in proc tabulate in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Change-color-of-data-row-in-proc-tabulate/m-p/494295#M72314</link>
    <description>&lt;P&gt;I would like to make the data columns gray for all rows with 'Total' in the subdiv field.&amp;nbsp; I am able to change the 'Total' cell, but need the entire row to be gray.&amp;nbsp; Any suggestions?&amp;nbsp; I've searched here but haven't found anything that works.&amp;nbsp; Thank you!!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sample.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23168iAFBAADF56041C0B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sample.PNG" alt="Sample.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc format;&lt;BR /&gt; value $subb 'Total'='gray';&lt;BR /&gt; value $subf 'Total'='white';&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;title;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;title1 "Sales Incentive and Rate Promotion Report";&lt;BR /&gt;title2 "&amp;amp;month &amp;amp;year";&lt;BR /&gt;footnote;&lt;BR /&gt;footnote1 j=center "Central Information Group (CIG) -- MRIT #163";&lt;BR /&gt;footnote2 j=center "Confidential";&lt;BR /&gt;footnote3 j=center "Posted to: COE Reporting Site -- Last Updated: &amp;amp;today";&lt;/P&gt;
&lt;P&gt;proc tabulate&lt;BR /&gt;data=totals_2(firstobs=1)&lt;BR /&gt;out=report_sum_table(label="") format=comma20.2;&lt;BR /&gt;var jan feb mar apr may jun jul aug sep oct nov dec ytd_region_total;&lt;BR /&gt;class marketareaname / order=data missing;&lt;BR /&gt;class report_order / order=formatted missing ;&lt;BR /&gt;class subdiv / order=formatted missing;&lt;BR /&gt;classlev subdiv / style={background=$subb. foreground=$subf.};&lt;BR /&gt;class group / style={foreground=white background=gray} order=data missing;&lt;BR /&gt;class region1 / order=data missing;&lt;BR /&gt;table /* Page Dimension */&lt;BR /&gt; marketareaname={label=" "},&lt;BR /&gt;/* Row Dimension */&lt;BR /&gt; group={label=" "} *&lt;BR /&gt; subdiv={label=" "} *&lt;BR /&gt; region1={label=" "},&lt;BR /&gt;/* Column Dimension */&lt;BR /&gt;jan* sum={label=""} &lt;BR /&gt;feb* sum={label=""} &lt;BR /&gt;mar* sum={label=""} &lt;BR /&gt;apr* sum={label=""} &lt;BR /&gt;may* sum={label=""} &lt;BR /&gt;jun* sum={label=""} &lt;BR /&gt;jul* sum={label=""} &lt;BR /&gt;aug* sum={label=""} &lt;BR /&gt;sep* sum={label=""} &lt;BR /&gt;oct* sum={label=""} &lt;BR /&gt;nov* sum={label=""} &lt;BR /&gt;dec* sum={label=""} &lt;BR /&gt;ytd_region_total* sum={label=""}&lt;BR /&gt;/*Table Options */&lt;BR /&gt;/ box={label=_page_} indent=0;;&lt;BR /&gt;run;run;quit;&lt;BR /&gt;title; footnote;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Sep 2018 20:06:21 GMT</pubDate>
    <dc:creator>acairns</dc:creator>
    <dc:date>2018-09-10T20:06:21Z</dc:date>
    <item>
      <title>Change color of data row in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-color-of-data-row-in-proc-tabulate/m-p/494295#M72314</link>
      <description>&lt;P&gt;I would like to make the data columns gray for all rows with 'Total' in the subdiv field.&amp;nbsp; I am able to change the 'Total' cell, but need the entire row to be gray.&amp;nbsp; Any suggestions?&amp;nbsp; I've searched here but haven't found anything that works.&amp;nbsp; Thank you!!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sample.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23168iAFBAADF56041C0B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sample.PNG" alt="Sample.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc format;&lt;BR /&gt; value $subb 'Total'='gray';&lt;BR /&gt; value $subf 'Total'='white';&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;title;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;title1 "Sales Incentive and Rate Promotion Report";&lt;BR /&gt;title2 "&amp;amp;month &amp;amp;year";&lt;BR /&gt;footnote;&lt;BR /&gt;footnote1 j=center "Central Information Group (CIG) -- MRIT #163";&lt;BR /&gt;footnote2 j=center "Confidential";&lt;BR /&gt;footnote3 j=center "Posted to: COE Reporting Site -- Last Updated: &amp;amp;today";&lt;/P&gt;
&lt;P&gt;proc tabulate&lt;BR /&gt;data=totals_2(firstobs=1)&lt;BR /&gt;out=report_sum_table(label="") format=comma20.2;&lt;BR /&gt;var jan feb mar apr may jun jul aug sep oct nov dec ytd_region_total;&lt;BR /&gt;class marketareaname / order=data missing;&lt;BR /&gt;class report_order / order=formatted missing ;&lt;BR /&gt;class subdiv / order=formatted missing;&lt;BR /&gt;classlev subdiv / style={background=$subb. foreground=$subf.};&lt;BR /&gt;class group / style={foreground=white background=gray} order=data missing;&lt;BR /&gt;class region1 / order=data missing;&lt;BR /&gt;table /* Page Dimension */&lt;BR /&gt; marketareaname={label=" "},&lt;BR /&gt;/* Row Dimension */&lt;BR /&gt; group={label=" "} *&lt;BR /&gt; subdiv={label=" "} *&lt;BR /&gt; region1={label=" "},&lt;BR /&gt;/* Column Dimension */&lt;BR /&gt;jan* sum={label=""} &lt;BR /&gt;feb* sum={label=""} &lt;BR /&gt;mar* sum={label=""} &lt;BR /&gt;apr* sum={label=""} &lt;BR /&gt;may* sum={label=""} &lt;BR /&gt;jun* sum={label=""} &lt;BR /&gt;jul* sum={label=""} &lt;BR /&gt;aug* sum={label=""} &lt;BR /&gt;sep* sum={label=""} &lt;BR /&gt;oct* sum={label=""} &lt;BR /&gt;nov* sum={label=""} &lt;BR /&gt;dec* sum={label=""} &lt;BR /&gt;ytd_region_total* sum={label=""}&lt;BR /&gt;/*Table Options */&lt;BR /&gt;/ box={label=_page_} indent=0;;&lt;BR /&gt;run;run;quit;&lt;BR /&gt;title; footnote;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 20:06:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-color-of-data-row-in-proc-tabulate/m-p/494295#M72314</guid>
      <dc:creator>acairns</dc:creator>
      <dc:date>2018-09-10T20:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of data row in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-color-of-data-row-in-proc-tabulate/m-p/498241#M72509</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You could do this easily in PROC REPORT, either with STYLE(SUMMARY) override or with a CALL DEFINE. But with TABULATE, you'd have to investigate the use of &amp;lt;PARENT&amp;gt; in a style override, as shown here:&amp;nbsp; &lt;A href="http://support.sas.com/kb/25/401.html" target="_blank"&gt;http://support.sas.com/kb/25/401.html&lt;/A&gt; -- except in your case, you'd limit the parent inheritance only to the TOTAL lines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; But, without data to test on, nobody can run your code. And, it's hard to make fake data without understanding what YOUR data looks like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Sun, 23 Sep 2018 15:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-color-of-data-row-in-proc-tabulate/m-p/498241#M72509</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-09-23T15:54:01Z</dc:date>
    </item>
  </channel>
</rss>

