Hi everybody, i'm facing with a little sas-detail, but probably can solve me a lot of problems...
I'd like to focus my datas, outcoming from my proc tabulate, in some particular conditions (example: differences >10% and so on), but I would like to focus (for example in red) not from the background but from the data.
example: 8% in white, 18% in red (the number and the % character)...
Thank you if'll you kindly help / light me.
valentina from Italy.
Then just change the style call from background to foreground.
So from this:
style={background=pi
To:
style={foreground=pi
Output the proc tabulate output to a dataset, then apply standar traffic lighting in a proc report:
https://communities.sas.com/t5/SAS-Procedures/Traffic-Lighting-with-Proc-Tabulate/td-p/83374
I'm sorry but I read the post you tell me before to write mine...
it's not helpful, the traffic light is in the background non in the data.
thank you, valentina
Then just change the style call from background to foreground.
So from this:
style={background=pi
To:
style={foreground=pi
thank u!!! it was simple!!!!
in italy we say: I lost myself in a glass of water ( as: It was all a storm in a teacup).
valentina
You can try the following code snippet on your example - for more information look at this SAS note http://support.sas.com/kb/23/353.html
proc report data=sashelp.class nowd; column name age sex height weight; define name / display; define age / order; define sex / order; define height / sum; define weight / sum; compute age; count+1; if count=5 then call define(_row_,"style","style={background=red}"); endcomp; run;
this is not a proc tabulate.
And an example using the value of a statistic to change text color.
proc format library=work; value colorpct 0 - 55 = 'blue' 55<-75 = 'green' 75<-high= 'red'; run; proc tabulate data=sashelp.class; class age; class sex; table age, sex*rowpctn*[style={foreground=colorpct.}]; run;
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.