<?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: SAS ENTERPRISE GUIDE: TRAFFIC LIGHTING - REPORT WITH COLORS ON SUB-SET OF DATA in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/388233#M25023</link>
    <description>someone resolved the original problem of the first post?&lt;BR /&gt;</description>
    <pubDate>Tue, 15 Aug 2017 17:49:01 GMT</pubDate>
    <dc:creator>PPimentel_Chile</dc:creator>
    <dc:date>2017-08-15T17:49:01Z</dc:date>
    <item>
      <title>SAS ENTERPRISE GUIDE: TRAFFIC LIGHTING - REPORT WITH COLORS ON SUB-SET OF DATA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/385500#M24842</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I´M TRYING TO APPLY COLORS&lt;/P&gt;&lt;P&gt;DETERMINING THE SMALLEST() 1 AND 2&lt;/P&gt;&lt;P&gt;FOR EACH SUB-SET OF DATA (7 CELLS) BY COLUMN (FONDO) AND ROW (DATE AND COMPANIES)&lt;/P&gt;&lt;P&gt;THE PROBLEM IS TO APPLY COLORS NOT ONLY BY COLUMN.&lt;/P&gt;&lt;P&gt;HOW WILL I APPLY THE COLORS IN ENTERPRISE GUIDE?&lt;/P&gt;&lt;P&gt;AN EXAMPLE OF THE REPORT IN EXCEL...&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="report.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14322iE7CA19CF864B8C9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="report.jpg" alt="report.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;THANKS IN ADVANCE,&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 21:22:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/385500#M24842</guid>
      <dc:creator>PPimentel_Chile</dc:creator>
      <dc:date>2017-08-03T21:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ENTERPRISE GUIDE: TRAFFIC LIGHTING - REPORT WITH COLORS ON SUB-SET OF DATA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/385878#M24868</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Are you using PROC REPORT to create the output? &amp;nbsp;If so, then here is an example:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="verdana,geneva"&gt;Example 13: Specifying Style Elements for ODS Output in Multiple Statements&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;&lt;A title="Example 13: Specifying Style Elements for ODS Output in Multiple Statements" href="http://support.sas.com/documentation/cdl/en/proc/70377/HTML/default/viewer.htm#p0xcdcilo2yuuwn1t9uks2c1e66e.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/70377/HTML/default/viewer.htm#p0xcdcilo2yuuwn1t9uks2c1e66e.htm&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;This paper provides examples using PROC PRINT and PROC report, the the techniques should work work with HTML, RTF, and PDF output, not only Excel:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="verdana,geneva"&gt;Traffic Lighting Your Multi-Sheet Microsoft Excel Workbooks the Easy Way with SAS®&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;&lt;A title="Traffic Lighting Your Multi-Sheet Microsoft Excel Workbooks the Easy Way with SAS®" href="http://support.sas.com/resources/papers/proceedings10/153-2010.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings10/153-2010.pdf&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2017 23:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/385878#M24868</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2017-08-05T23:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ENTERPRISE GUIDE: TRAFFIC LIGHTING - REPORT WITH COLORS ON SUB-SET OF DATA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/387749#M24990</link>
      <description>&lt;P&gt;Hi Vince,&lt;/P&gt;&lt;P&gt;I´m only using sorts, query builder and summary tables of enterprise guide&lt;/P&gt;&lt;P&gt;i´ve still with the problem unsolved, i can identify the 2 smallest values of each sub-set of data (7 values) from the column, but i still cannot apply the colors to these values&lt;/P&gt;&lt;P&gt;I want the output in html or pdf, the print in excel was only an example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=WORK.'QUERY_FOR_PROFIT'n nowd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column DATE cv1 COMPANY 'Fondo 1'n, SUM='Fondo 1_SUM'n 'Fondo 2'n, SUM='Fondo 2_SUM'n 'Fondo 3'n, SUM='Fondo 3_SUM'n 'Fondo 4'n, SUM='Fondo 4_SUM'n 'Fondo 5'n, SUM='Fondo 5_SUM'n;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define DATE / group format=DATE9. missing noprint order=internal;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define cv1 / computed 'DATE' format=DATE9. missing;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compute cv1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if DATE ne . then hold1=DATE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cv1=hold1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endcomp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define COMPANY / group 'COMPANY' format=$CHAR9. missing order=formatted;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compute COMPANY;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if COMPANY ne ' ' then hold2=COMPANY;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if COMPANY eq ' ' then COMPANY=hold2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endcomp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define 'Fondo 1'n / analysis SUM 'Fondo 1' missing;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define 'Fondo 2'n / analysis SUM 'Fondo 2' missing;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define 'Fondo 3'n / analysis SUM 'Fondo 3' missing;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define 'Fondo 4'n / analysis SUM 'Fondo 4' missing;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define 'Fondo 5'n / analysis SUM 'Fondo 5' missing;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 12:52:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/387749#M24990</guid>
      <dc:creator>PPimentel_Chile</dc:creator>
      <dc:date>2017-08-14T12:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ENTERPRISE GUIDE: TRAFFIC LIGHTING - REPORT WITH COLORS ON SUB-SET OF DATA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/388112#M25010</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;The techniques in the references that I provided earliler work for HTML and PDF.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;The sample program below shows provides an example of applying&amp;nbsp;style override code to one&amp;nbsp;column in your data.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname=any;

data work.query_for_profit;
length DATE 8 COMPANY $3 'Fondo 1'n-'Fondo 5'n 8;
input DATE date9. COMPANY 'Fondo 1'n-'Fondo 5'n;
format DATE date9.;
cards;
31JUL2017 C-1 4.47 2.89 3.79 4.52 4.63
31JUL2017 C-2 3.50 3.50 3.50 3.50 3.98
31JUL2017 C-3 4.62 4.62 4.62 4.62 7.33
31JUL2017 C-4 2.47 3.47 3.47 3.15 7.10
;
run;

ods _all_ close;

ods html file='C:\temp\temp.htm';
ods pdf  file='C:\temp\temp.pdf';

title;
footnote;

proc report data=work.query_for_profit nowd;
  column DATE cv1 COMPANY 
         'Fondo 1'n, SUM='Fondo 1_SUM'n 
         'Fondo 2'n, SUM='Fondo 2_SUM'n 
         'Fondo 3'n, SUM='Fondo 3_SUM'n 
         'Fondo 4'n, SUM='Fondo 4_SUM'n 
         'Fondo 5'n, SUM='Fondo 5_SUM'n
         temp;

  define DATE       / group format=DATE9. missing noprint order=internal;
  define cv1        / computed 'DATE' format=date9. missing;
  define COMPANY    / group 'COMPANY' format=$char9. missing order=formatted;
  define 'Fondo 1'n / analysis SUM 'Fondo 1' missing;
  define 'Fondo 2'n / analysis SUM 'Fondo 2' missing;
  define 'Fondo 3'n / analysis SUM 'Fondo 3' missing;
  define 'Fondo 4'n / analysis SUM 'Fondo 4' missing;
  define 'Fondo 5'n / analysis SUM 'Fondo 5' missing;
  define temp       / computed noprint;

  compute temp;
    *  Rules for Fondo 1_SUM here;
    if ('Fondo 1_SUM'n le 2.49)
      then call define('Fondo 1_SUM', 'style', 'style=[background=red]');
    else if ('Fondo 1_SUM'n le 3.50)
      then call define('Fondo 1_SUM', 'style', 'style=[background=yellow]');
      else call define('Fondo 1_SUM', 'style', 'style=[background=green]');

    *  Rules for Fondo 2_SUM here;

    *  Rules for Fondo 3_SUM here;

    *  Rules for Fondo 4_SUM here;

    *  Rules for Fondo 5_SUM here;

  endcomp;

  compute cv1;
    if DATE ne . then hold1=DATE;
    cv1=hold1;
  endcomp;

  compute COMPANY;
    if COMPANY ne ' ' then hold2=COMPANY;
    if COMPANY eq ' ' then COMPANY=hold2;
  endcomp;
run; quit;

ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 12:31:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/388112#M25010</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2017-08-15T12:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ENTERPRISE GUIDE: TRAFFIC LIGHTING - REPORT WITH COLORS ON SUB-SET OF DATA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/388193#M25016</link>
      <description>Hi Vince, thanks for your response,&lt;BR /&gt;We have historical data since 2010 of profits of the 7 companies&lt;BR /&gt;(C-1,C-2,..), each month with 5 different investment fund (Fondo). Each&lt;BR /&gt;month we identify the 10 smallest profits. Is there any way to&lt;BR /&gt;automatically apply the color to the lowest profit performance (smallest)?&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Aug 2017 15:28:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/388193#M25016</guid>
      <dc:creator>PPimentel_Chile</dc:creator>
      <dc:date>2017-08-15T15:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ENTERPRISE GUIDE: TRAFFIC LIGHTING - REPORT WITH COLORS ON SUB-SET OF DATA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/388202#M25017</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Perhaps pre-process the data, create global macro variables for each Fondo, and then use the macro variables in COMPUTE block that assigns the colors?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 15:53:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/388202#M25017</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2017-08-15T15:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ENTERPRISE GUIDE: TRAFFIC LIGHTING - REPORT WITH COLORS ON SUB-SET OF DATA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/388205#M25018</link>
      <description>Could you provide us an example of that?&lt;BR /&gt;Thanks,&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Aug 2017 15:58:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/388205#M25018</guid>
      <dc:creator>PPimentel_Chile</dc:creator>
      <dc:date>2017-08-15T15:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ENTERPRISE GUIDE: TRAFFIC LIGHTING - REPORT WITH COLORS ON SUB-SET OF DATA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/388208#M25019</link>
      <description>&lt;P&gt;No, I can't. &amp;nbsp;It's something very specific to your data and to your data structure. &amp;nbsp;You may be able to use PROC SORT and then keep the first 10 records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might try posting your data manipulation question in the Base SAS Programming forum:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/bd-p/programming" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/bd-p/programming&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vince DelGobbo&lt;/P&gt;
&lt;P&gt;SAS R&amp;amp;D&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 16:06:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/388208#M25019</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2017-08-15T16:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ENTERPRISE GUIDE: TRAFFIC LIGHTING - REPORT WITH COLORS ON SUB-SET OF DATA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/388233#M25023</link>
      <description>someone resolved the original problem of the first post?&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Aug 2017 17:49:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/388233#M25023</guid>
      <dc:creator>PPimentel_Chile</dc:creator>
      <dc:date>2017-08-15T17:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ENTERPRISE GUIDE: TRAFFIC LIGHTING - REPORT WITH COLORS ON SUB-SET OF DATA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/388243#M25025</link>
      <description>&lt;P&gt;I think&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13635"&gt;@Vince_SAS&lt;/a&gt;&amp;nbsp;provided a good solution for your traffic highlighting question, but then you snuck in a data manipulation question -- how to determine the boundaries of the highlights and which records fall into them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use PROC RANK as one method to find/flag the "bottom 10" for a given group of records. &amp;nbsp;Here's an example that uses sample data. &amp;nbsp;In this sample, I'm highlighting the bottom 3 auto makes, ranked by MSRP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Sort before ranking BY a group */
PROC SORT
	DATA=sashelp.cars
	OUT=WORK.bymake
	;
	BY Make Model;
RUN;

/* create a rank variable */
PROC RANK DATA = WORK.bymake
	TIES=MEAN
	OUT=WORK.rankedMsrp;
	BY Make;
	VAR MSRP;
RANKS rank_MSRP ;

/* Create a report that marks LOWEST 3 in each group in Red */
proc report data=work.rankedmsrp nowd;
	column make model msrp rank_MSRP temp;
	define make / display order;
	define model / display;
	define msrp / order;
	define temp / computed noprint;
	define rank_MSRP / noprint order;
	compute temp;
	 if (rank_MSRP &amp;lt;= 3)
	      then call define('MSRP', 'style', 'style=[background=red]');
	endcomp;
run; quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lowrank.png" style="width: 434px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14498i554296FD57D8CA77/image-size/large?v=v2&amp;amp;px=999" role="button" title="lowrank.png" alt="lowrank.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 18:15:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ENTERPRISE-GUIDE-TRAFFIC-LIGHTING-REPORT-WITH-COLORS-ON-SUB/m-p/388243#M25025</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-08-15T18:15:19Z</dc:date>
    </item>
  </channel>
</rss>

