<?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 Report Traffic Lighting in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Traffic-Lighting/m-p/629319#M23815</link>
    <description>Thanks for the suggestions. Each month is a separate variable. So I would need to assess if each variable is 2 std dev away from the mean and then highlight the ones which are out of that range.</description>
    <pubDate>Tue, 03 Mar 2020 23:04:23 GMT</pubDate>
    <dc:creator>analyst_work</dc:creator>
    <dc:date>2020-03-03T23:04:23Z</dc:date>
    <item>
      <title>Proc Report Traffic Lighting</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Traffic-Lighting/m-p/627712#M23801</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;Hi,&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I am trying to add traffic lighting to my data set using proc report. I have the data in a wide format, I want to flag all values (could be changing the font color or the background cell color) which are 2 std dev away from the mean for that particular row. So essentially, I am comparing the mean to each of the column (almost 60 columns in total) Here's how I would like my data to look like (of course the mean/std values for different rows will be different, this is just an example):&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Hospital&amp;nbsp; Dec_2019 Jan_2020 Feb_2020 March_2020&amp;nbsp; &amp;nbsp;Mean&amp;nbsp; &amp;nbsp; Std_Dev&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 25&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;30&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT color="#FF0000"&gt;65&lt;/FONT&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20.41&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT color="#FF0000"&gt;65&lt;/FONT&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 30&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT color="#FF0000"&gt;65&lt;/FONT&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20.41&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT color="#FF0000"&gt;65&lt;/FONT&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 25&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 30&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20.41&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;D&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 25&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT color="#FF0000"&gt;65&lt;/FONT&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color="#FF0000"&gt;65&lt;/FONT&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20.41&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 00:48:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Traffic-Lighting/m-p/627712#M23801</guid>
      <dc:creator>analyst_work</dc:creator>
      <dc:date>2020-02-27T00:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Traffic Lighting</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Traffic-Lighting/m-p/627731#M23802</link>
      <description>&lt;P&gt;A Google search using keywords&amp;nbsp;&lt;EM&gt;sas proc report style based on another column value&lt;/EM&gt;&amp;nbsp;returned quite a few relevant links for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look if the solution&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;proposes &lt;A href="https://communities.sas.com/t5/General-SAS-Programming/Assign-style-to-variable-based-off-another-variables-value/td-p/97043" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;gives you what you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're after actual code then please post working Proc Report code together with the data used so that we just can add the desired traffic lighting bit (and we also need the data so we can test what we propose).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 02:54:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Traffic-Lighting/m-p/627731#M23802</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-02-27T02:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Traffic Lighting</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Traffic-Lighting/m-p/627930#M23803</link>
      <description>Hi: &lt;BR /&gt;  Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt; for the reference! &lt;BR /&gt;&lt;BR /&gt;  The hitch in the description of what's needed is that you can't add traffic-lighting to the data set, but CAN add traffic-lighting as described to an HTML, PDF or RTF report. There are 2 ways to do it in PROC REPORT: simple style override or CALL DEFINE statement. How the OP needs to do it will depend on what is in the COLUMN statement. &lt;BR /&gt;&lt;BR /&gt;Are there individual variables for each month or is there an Across variable being used? That matters because it will change how the PROC REPORT code is written. &lt;BR /&gt;&lt;BR /&gt;So &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;'s suggestion is on point. Without the PROC REPORT code and data that produces the report without color-coding, its hard to make specific suggestions.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 27 Feb 2020 15:03:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Traffic-Lighting/m-p/627930#M23803</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-02-27T15:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Traffic Lighting</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Traffic-Lighting/m-p/629319#M23815</link>
      <description>Thanks for the suggestions. Each month is a separate variable. So I would need to assess if each variable is 2 std dev away from the mean and then highlight the ones which are out of that range.</description>
      <pubDate>Tue, 03 Mar 2020 23:04:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Traffic-Lighting/m-p/629319#M23815</guid>
      <dc:creator>analyst_work</dc:creator>
      <dc:date>2020-03-03T23:04:23Z</dc:date>
    </item>
  </channel>
</rss>

