BookmarkSubscribeRSS Feed
ross_geller
Calcite | Level 5
Hi all.
I'm working on a project based on customized reporting.
We use WebReportStudio on SAS 9.1.3 (actually migration to SAS 9.2 is coming), and often Java Flexi web appl to customize masks.

The purpose is that the Customer asked to use Color Coding on some tables in order to identify a best/worse item in the table, which means that the rule is:
- Cell Value =>MEDIA+10 get green color,
- Cell Value < MEDIA-10 get red color)
The problem is that the trend, so that the rule of the color coding, changes trend based on a Threshold, as follows:
IF CellValue<=Threshold then
- Cell Value =>MEDIA+10 get green color,
- Cell Value < MEDIA-10 get red color)
IF CellValue>Threshold then
- Cell Value =>MEDIA+10 get red color,
- Cell Value < MEDIA-10 get green color)

The developer team's proposal is to add to the table an added column with the check, but in my opinion the report could become too heavy and laboured.

So i ask if it's possible to get solution by means of STP.

Thanks for attention and in advance for response.

Cheers
-g.
2 REPLIES 2
Vince_SAS
Rhodochrosite | Level 12
Maybe PROC REPORT with a COMPUTE block to set the style attributes?

http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000545547.htm

Vince DelGobbo
SAS R&D
ross_geller
Calcite | Level 5
Thanks Vincenzo.
By use of ODS and COMPUTE we can get reports .pdf, .html, .xls, etc.
but we would like to keep on browsing olap cubes, WebReportStudio-like.

In that case, it seems WRS does not give the chance to implement a complex condition to format table's cells (see the above example formula)

Cheers
-giuseppe

sas-innovate-2024.png

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.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 774 views
  • 0 likes
  • 2 in conversation