<?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: proc tabulate: bold row if column has value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-bold-row-if-column-has-value/m-p/842058#M332953</link>
    <description>&lt;P&gt;OK. It is not easy for PROC TABULATE.&lt;/P&gt;
&lt;P&gt;But how about this one ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value $ fmt
'Kia'='bold'
other='light'
;
run;

proc tabulate data=sashelp.cars;
class make type;
classlev make/style={fontweight=$fmt.};
var msrp;
table make*{style=&amp;lt;parent&amp;gt;{background=white foreground=black}},type*msrp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1667389287466.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76866iCBD427EAEE41FE0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1667389287466.png" alt="Ksharp_0-1667389287466.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2022 11:41:15 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-11-02T11:41:15Z</dc:date>
    <item>
      <title>proc tabulate: bold row if column has value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-bold-row-if-column-has-value/m-p/841830#M332866</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried several options but it doesnt work for me. What I want: A hole row shall be bold, if one column has a specific value.&lt;/P&gt;
&lt;P&gt;For example with the sashelp.cars-data: I want to have a bold row, if the Make-Value is "Kia".&lt;/P&gt;
&lt;P&gt;Thank you for help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=sashelp.cars;
class make type;
var msrp;
table make,type*msrp;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Nov 2022 11:21:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-bold-row-if-column-has-value/m-p/841830#M332866</guid>
      <dc:creator>Konkordanz</dc:creator>
      <dc:date>2022-11-01T11:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate: bold row if column has value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-bold-row-if-column-has-value/m-p/841837#M332871</link>
      <description>&lt;P&gt;Use PROC REPORT instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.cars nowd;
columns make msrp,type;
define make/group style=header;
define type/across;
define msrp/analysis sum  ' ';
compute make;
 if make='Kia' then do;
  call define(_row_,'style','style={fontweight=bold}');
  call define(_col_,'style','style=header');
 end;
endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1667304907716.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76837i0CF133A33FC7764C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1667304907716.png" alt="Ksharp_0-1667304907716.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 12:14:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-bold-row-if-column-has-value/m-p/841837#M332871</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-11-01T12:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate: bold row if column has value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-bold-row-if-column-has-value/m-p/842034#M332939</link>
      <description>&lt;P&gt;Right, with proc-report its doable. But is there also a solution for the proc-tabulate-step?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 08:07:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-bold-row-if-column-has-value/m-p/842034#M332939</guid>
      <dc:creator>Konkordanz</dc:creator>
      <dc:date>2022-11-02T08:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate: bold row if column has value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-bold-row-if-column-has-value/m-p/842058#M332953</link>
      <description>&lt;P&gt;OK. It is not easy for PROC TABULATE.&lt;/P&gt;
&lt;P&gt;But how about this one ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value $ fmt
'Kia'='bold'
other='light'
;
run;

proc tabulate data=sashelp.cars;
class make type;
classlev make/style={fontweight=$fmt.};
var msrp;
table make*{style=&amp;lt;parent&amp;gt;{background=white foreground=black}},type*msrp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1667389287466.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76866iCBD427EAEE41FE0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1667389287466.png" alt="Ksharp_0-1667389287466.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 11:41:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-bold-row-if-column-has-value/m-p/842058#M332953</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-11-02T11:41:15Z</dc:date>
    </item>
  </channel>
</rss>

