<?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: conditional formatting of color scales (red-yellow-green colors) in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/446773#M112150</link>
    <description>&lt;P&gt;Try Traffic Light . Calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Mar 2018 13:58:41 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2018-03-19T13:58:41Z</dc:date>
    <item>
      <title>conditional formatting of color scales (red-yellow-green colors) in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/446699#M112120</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have SAS that was created by export from SAS to excel and then use Excel formats.&lt;/P&gt;&lt;P&gt;In my work I have a task to create formats in SAS (Proc Report) and then export the fornmatted report to excel.&lt;/P&gt;&lt;P&gt;In excel I have one column with conditional formatting of color scales (red-yellow-green colors).&lt;/P&gt;&lt;P&gt;Does anyone know how to create&amp;nbsp;&lt;SPAN&gt;conditional formatting of color scales (red-yellow-green colors) in SAS?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ronein&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 09:02:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/446699#M112120</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-03-19T09:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: conditional formatting of color scales (red-yellow-green colors) in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/446773#M112150</link>
      <description>&lt;P&gt;Try Traffic Light . Calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 13:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/446773#M112150</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-03-19T13:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: conditional formatting of color scales (red-yellow-green colors) in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/446804#M112171</link>
      <description>&lt;P&gt;Let's suppose you can identify some threshold values for the reds, yellows and greens. For example, 0-0.5 is green, 0.5 to 1 is yellow and above 1 is red.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, for example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value ryg = 0-&amp;lt;0.5=lightmoderategreen 0.5-&amp;lt;1=yellow 1-high=lightmoderatered;
run;

proc report data=have;
    columns a b c d e;
    define b/style={background=ryg.}; /* Repeat as needed for other columns */
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you really want, you can have SAS compute percentiles for your variables and then use the percentiles as cutoffs; this is a little more&amp;nbsp;involved and requires either macros or CALL EXECUTE.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 14:46:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/446804#M112171</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-03-19T14:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: conditional formatting of color scales (red-yellow-green colors) in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/446864#M112193</link>
      <description>There have been so many postings already on trafficlighting using PROC REPORT. All it should take is a search in the Communities to find them.&lt;BR /&gt;Cynthia</description>
      <pubDate>Mon, 19 Mar 2018 16:54:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/446864#M112193</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-03-19T16:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: conditional formatting of color scales (red-yellow-green colors) in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/447022#M112226</link>
      <description>&lt;P&gt;Thanks a lot for your reply.&lt;/P&gt;&lt;P&gt;I am not sure how conditional formatting--Color Scales--Red Yellow Green color scales is working in excel .&lt;/P&gt;&lt;P&gt;My target is to get same colors formats in SAS like in Excel.&lt;/P&gt;&lt;P&gt;Do you know how to do it please?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 07:59:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/447022#M112226</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-03-20T07:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: conditional formatting of color scales (red-yellow-green colors) in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/447097#M112251</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This is what I get:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tlite.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19316i1DD2BA8BD8032E4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="tlite.png" alt="tlite.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So, the traffic light method does work in ODS EXCEL (and other destinations. SAS can use any color you specify, as long as you specify it using the RGB color system, the HLS color system or using the registry names. I do not understand what you mean when you say "My target is to get same colors formats in SAS like in Excel."&amp;nbsp; Do you mean you want the exact same color choices that you have in Excel? It should be pretty easy to figure out those color values if you mean you want the same color choices. Otherwise, I don't know what you mean. The only other way to do traffic lighting with PROC REPORT is to use a CALL DEFINE, which isn't needed in this example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 13:57:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/447097#M112251</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-03-20T13:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: conditional formatting of color scales (red-yellow-green colors) in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/447104#M112254</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thanks a lot for your reply.&lt;/P&gt;
&lt;P&gt;I am not sure how conditional formatting--Color Scales--Red Yellow Green color scales is working in excel .&lt;/P&gt;
&lt;P&gt;My target is to get same colors formats in SAS like in Excel.&lt;/P&gt;
&lt;P&gt;Do you know how to do it please?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If the request is to match Excel colors&amp;nbsp;&lt;STRONG&gt;exactly&lt;/STRONG&gt;, this seems like a huge amount of work. Excel has a scaling algorithm that will take the data value in each cell and turn it into a color in the red-yellow-green spectrum. If you just want to get close, so that when Excel uses one of the darker greens, SAS uses one of the darker greens but not necessarily the exact same dark green as Excel, that seems much more doable.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 14:27:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/447104#M112254</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-03-20T14:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: conditional formatting of color scales (red-yellow-green colors) in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/773232#M245598</link>
      <description>Hi I have been searching all the conditional formatting related articles in proc report but they have not catered my problem. I'm trying to highlight cells based on the value of another cell( i.e. total) and all the values below the total value should be highlighted according to traffic lightining. PS -: I can not hard code the values in formatting as my values in all the cells are changing on daily basis and I don't want to change the values on daily basis in my code.</description>
      <pubDate>Sat, 09 Oct 2021 19:59:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/773232#M245598</guid>
      <dc:creator>Prateek_AU</dc:creator>
      <dc:date>2021-10-09T19:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: conditional formatting of color scales (red-yellow-green colors) in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/773241#M245605</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/402212"&gt;@Prateek_AU&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi I have been searching all the conditional formatting related articles in proc report but they have not catered my problem. I'm trying to highlight cells based on the value of another cell( i.e. total) and all the values below the total value should be highlighted according to traffic lightining. PS -: I can not hard code the values in formatting as my values in all the cells are changing on daily basis and I don't want to change the values on daily basis in my code.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please start a new thread, since this is a different problem. In that new thread, explain your problem from scratch.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 23:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/conditional-formatting-of-color-scales-red-yellow-green-colors/m-p/773241#M245605</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-10-09T23:04:04Z</dc:date>
    </item>
  </channel>
</rss>

