<?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: How do I create conditional formatting on a summary table in SAS EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-create-conditional-formatting-on-a-summary-table-in-SAS/m-p/671252#M36487</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; With PROC TABULATE, you can use a format to do some highlighting, such as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1595379152570.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47482i5A506920879C6241/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1595379152570.png" alt="Cynthia_sas_0-1595379152570.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However, this format applies to both columns for COLPCTN. Not just the M column. It happened to work because I hardcoded 10.00 and 30.00 which were only found in the M column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; With different values in the format, my format would impact both columns, like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_1-1595379335598.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47483i947A96BED2E1725C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1595379335598.png" alt="Cynthia_sas_1-1595379335598.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The only way to JUST touch one of the cell values in the M column without impacting the F column would be to switch to PROC REPORT or possibly the Report Writing Interface. But for calculating COLPCTN, you might want to use TABULATE to generate the values and then use REPORT for the color coding. Your logic is not entirely clear to me for the color coding your want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jul 2020 00:58:14 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2020-07-22T00:58:14Z</dc:date>
    <item>
      <title>How do I create conditional formatting on a summary table in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-create-conditional-formatting-on-a-summary-table-in-SAS/m-p/671238#M36486</link>
      <description>&lt;P&gt;I have created a summary table of several different variables from a table and created columns to look at the number of instances occurring in each year. The table also provides a ColPctN for the two years separately (see attached).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to create conditional formatting based on the following:&lt;/P&gt;&lt;P&gt;1. If the ColPctN for a variable value is 10% or less in YEAR2 turn the cell red&lt;/P&gt;&lt;P&gt;2. If the ColPctN for a variable value is 10% or greater in YEAR2 turn the cell green&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way I can use conditional formatting or something else to make this adjustment in the summary table output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;runningjay&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 23:43:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-create-conditional-formatting-on-a-summary-table-in-SAS/m-p/671238#M36486</guid>
      <dc:creator>runningjay</dc:creator>
      <dc:date>2020-07-21T23:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create conditional formatting on a summary table in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-create-conditional-formatting-on-a-summary-table-in-SAS/m-p/671252#M36487</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; With PROC TABULATE, you can use a format to do some highlighting, such as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1595379152570.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47482i5A506920879C6241/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1595379152570.png" alt="Cynthia_sas_0-1595379152570.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However, this format applies to both columns for COLPCTN. Not just the M column. It happened to work because I hardcoded 10.00 and 30.00 which were only found in the M column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; With different values in the format, my format would impact both columns, like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_1-1595379335598.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47483i947A96BED2E1725C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1595379335598.png" alt="Cynthia_sas_1-1595379335598.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The only way to JUST touch one of the cell values in the M column without impacting the F column would be to switch to PROC REPORT or possibly the Report Writing Interface. But for calculating COLPCTN, you might want to use TABULATE to generate the values and then use REPORT for the color coding. Your logic is not entirely clear to me for the color coding your want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 00:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-I-create-conditional-formatting-on-a-summary-table-in-SAS/m-p/671252#M36487</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-07-22T00:58:14Z</dc:date>
    </item>
  </channel>
</rss>

