Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     formating data based on total values

Read-Only Read-Only Topic
Go
Search
Notify
Tools
formating data based on total values
 Login/Join
 
Silver Member
posted
I need to conditonally format the data based on the grand total values(which is actually average of all columns in this example)

TYPE=DATA,
COLUMN=N3,
COLOR='RED',
WHEN=N3 GE 11578,

Right now I have hard coded the value. I want to do this without hardcoding like something WHEN=N3 GE AVE. SALES


SET SUMMARYLINES=NEW
TABLE FILE CAR
PRINT
DEALER_COST
SALES
RETAIL_COST
BY CAR
ON TABLE SUBTOTAL AVE. DEALER_COST AVE. SALES AVE. RETAIL_COST
ON TABLE SET ONLINE-FMT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='SCREEN',
LEFTMARGIN=0.000000,
RIGHTMARGIN=0.000000,
TOPMARGIN=0.000000,
BOTTOMMARGIN=0.000000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
RIGHTGAP=0.125000,
$
TYPE=DATA,
COLUMN=N3,
COLOR='RED',
WHEN=N3 GE 11578,
$
TYPE=GRANDTOTAL,
COLUMN=N4,
COLOR=BLUE,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=OFF,
BORDER-RIGHT=LIGHT,
BORDER-COLOR='BLACK',
$
TYPE=GRANDTOTAL,
COLUMN=N3,
COLOR=BLUE,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=OFF,
BORDER-RIGHT=LIGHT,
BORDER-COLOR='BLACK',
$
TYPE=GRANDTOTAL,
COLUMN=N2,
COLOR=BLUE,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=OFF,
BORDER-RIGHT=LIGHT,
BORDER-COLOR='BLACK',
$
ENDSTYLE
END



Thank you


Madhu

WF Version 7.1 Windows, SQL Server Database
 
Posts: 36 | Location: Mississauga, Ontario | Registered: April 12, 2007Report This Post
Virtuoso
posted Hide Post
Madhu

I have never tried this but when it works you can use amper values

WHEN=N3 GE '&VALUE'

If this does work, you can first calculate the wanted value, put it in a amper value and use it.

An other solution might be


TABLE FILE CAR
SUM AVE. SALES NOPRINT
BY CAR NOPRINT
PRINT  DEALER_COST
SALES
RETAIL_COST
BY CAR
....
...
TYPE=DATA,
COLUMN=N5,
COLOR='RED',
WHEN=N5 GE N2,




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Silver Member
posted Hide Post
Hi Frank,

The second solution works very good. I haven't tried the first solution yet. This is the code for the second solution.


SET SUMMARYLINES=NEW
TABLE FILE CAR
SUM
AVE.DEALER_COST NOPRINT
AVE.SALES NOPRINT
AVE.RETAIL_COST NOPRINT
PRINT
DEALER_COST
SALES
RETAIL_COST
BY CAR
ON TABLE SUBTOTAL AVE. DEALER_COST AVE. SALES AVE. RETAIL_COST
ON TABLE SET ONLINE-FMT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='SCREEN',
LEFTMARGIN=0.000000,
RIGHTMARGIN=0.000000,
TOPMARGIN=0.000000,
BOTTOMMARGIN=0.000000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
RIGHTGAP=0.125000,
$
TYPE=DATA,
COLUMN=N6,
COLOR='RED',
WHEN=N6 LE N2,
$
TYPE=DATA,
COLUMN=N5,
COLOR='RED',
WHEN=N5 LE N1,
$
TYPE=DATA,
COLUMN=N7,
COLOR='RED',
WHEN=N7 LE N3,
$
TYPE=GRANDTOTAL,
COLUMN=N7,
COLOR=BLUE,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=OFF,
BORDER-RIGHT=LIGHT,
BORDER-COLOR='BLACK',
$
TYPE=GRANDTOTAL,
COLUMN=N6,
COLOR=BLUE,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=OFF,
BORDER-RIGHT=LIGHT,
BORDER-COLOR='BLACK',
$
TYPE=GRANDTOTAL,
COLUMN=N5,
COLOR=BLUE,
BORDER-TOP=LIGHT,
BORDER-BOTTOM=LIGHT,
BORDER-LEFT=OFF,
BORDER-RIGHT=LIGHT,
BORDER-COLOR='BLACK',
$
ENDSTYLE
END


Madhu

WF Version 7.1 Windows, SQL Server Database
 
Posts: 36 | Location: Mississauga, Ontario | Registered: April 12, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     formating data based on total values

Copyright © 1996-2020 Information Builders