Focal Point
[SOLVED] Colorin negative values in a webfocus matrix report

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5777043036

April 22, 2013, 11:14 AM
Sourabh Mukherjee
[SOLVED] Colorin negative values in a webfocus matrix report
Hi,

I need to color the negative values as red in a report having BY and Across

Please help,
Type=data,color=red, when =n1 lt 0, $ is not working

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.6
Windows, All Outputs
April 22, 2013, 11:22 AM
Rao D
Try something like this

TYPE=DATA,
COLUMN = N1,
WHEN= N1 LT 0,
COLOR='RED',
$


WebFOCUS - ver8201
[ReportingServers: Windows 64bit;
Client: tomcat and IIS on windows 2012
AppStudio

April 22, 2013, 11:45 AM
Sourabh Mukherjee
quote:
WHEN= N1 LT 0,
COLOR='RED',


Thanks for your reply Rao. It is working for the first column but not for the rest. Is it because I am using Across.

TABLE FILE SQLOUT1
SUM ABC
BY DEF
ACROSS XYZ
ACROSS KLD
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE
TYPE=DATA,COLUMN=N3,WHEN= N3 LT 0,COLOR='RED',$
ENDSTYLE
END


WebFOCUS 7.6
Windows, All Outputs
April 22, 2013, 12:01 PM
Francis Mariani
It's an ACROSS, so you have to use ACROSSCOLUMN:

TYPE=DATA      , ACROSSCOLUMN=AMOUNT_PC, COLOR=RED, WHEN=AMOUNT_PC LT 0, $
TYPE=SUBTOTAL  , ACROSSCOLUMN=AMOUNT_PC, COLOR=RED, WHEN=AMOUNT_PC LT 0, $
TYPE=GRANDTOTAL, ACROSSCOLUMN=AMOUNT_PC, COLOR=RED, WHEN=AMOUNT_PC LT 0, $



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
April 23, 2013, 12:30 AM
Sourabh Mukherjee
quote:
TYPE=DATA , ACROSSCOLUMN=AMOUNT_PC, COLOR=RED, WHEN=AMOUNT_PC LT 0, $


Thanks you very much Francis. You made my day.

Regards,
Sourabh


WebFOCUS 7.6
Windows, All Outputs