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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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