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     [CLOSED] 3 conditions based on data range

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] 3 conditions based on data range
 Login/Join
 
Silver Member
posted
Hi,

I need to add 3 conditions on one field.

If 'field' is LT 10% then apply red color to the column background. If field is GT 10% AND LT 20% Then apply yellow color If field is GT 20% then green color.

Please suggest me on how to add these conditions to one field.

Thank you,
Priya.

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.7
Windows, All Outputs
 
Posts: 38 | Registered: March 07, 2012Report This Post
Virtuoso
posted Hide Post
Priya,

It is quite simple to do this with D.S. Did you try?
Just click on the field, choose "Options", define a condition and set a color to that condition.
You should get something like this:
  
-* File priya01.fex
DEFINE FILE CAR
PSALES/D7.2=CAR.BODY.SALES;
END
TABLE FILE CAR
SUM 
     CAR.BODY.SALES
     PCT.CAR.BODY.PSALES
BY  LOWEST CAR.ORIGIN.COUNTRY
BY  LOWEST CAR.COMP.CAR
ON TABLE SET PAGE-NUM NOLEAD 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
     DEFMACRO=RED,
     MACTYPE=RULE,
     WHEN=N4 LE 10,
$
     DEFMACRO=YEL,
     MACTYPE=RULE,
     WHEN=N4 LE 20,
$
     DEFMACRO=GRE,
     MACTYPE=RULE,
     WHEN=N4 GT 20,
$
TYPE=DATA,
     COLUMN=N4,
     BACKCOLOR='RED',
     MACRO=RED,
$
TYPE=DATA,
     COLUMN=N4,
     BACKCOLOR='YELLOW',
     MACRO=YEL,
$
TYPE=DATA,
     COLUMN=N4,
     BACKCOLOR='LIME',
     MACRO=GRE,
$
ENDSTYLE
END

Good luck!


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Silver Member
posted Hide Post
quote:
DEFINE FILE CAR
PSALES/D7.2=CAR.BODY.SALES;
END
TABLE FILE CAR
SUM
CAR.BODY.SALES
PCT.CAR.BODY.PSALES
BY LOWEST CAR.ORIGIN.COUNTRY
BY LOWEST CAR.COMP.CAR
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt,
$
DEFMACRO=RED,
MACTYPE=RULE,
WHEN=N4 LE 10,
$
DEFMACRO=YEL,
MACTYPE=RULE,
WHEN=N4 LE 20,
$
DEFMACRO=GRE,
MACTYPE=RULE,
WHEN=N4 GT 20,
$
TYPE=DATA,
COLUMN=N4,
BACKCOLOR='RED',
MACRO=RED,
$
TYPE=DATA,
COLUMN=N4,
BACKCOLOR='YELLOW',
MACRO=YEL,
$
TYPE=DATA,
COLUMN=N4,
BACKCOLOR='LIME',
MACRO=GRE,
$
ENDSTYLE
END



Hi Danny,

Thank you for the solution....it works ...i have to do this for 24 columns... is there any faster way to do this???


WebFOCUS 7.7
Windows, All Outputs
 
Posts: 38 | Registered: March 07, 2012Report This Post
Virtuoso
posted Hide Post
Use D.S. and apply the condition to all the fields.
DO you have to apply the background colors to 24 fields according to one percentage? or for each field a different percentage?

This message has been edited. Last edited by: Danny-SRL,


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Silver Member
posted Hide Post
This is closed.


WebFOCUS 7.7
Windows, All Outputs
 
Posts: 38 | Registered: March 07, 2012Report 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     [CLOSED] 3 conditions based on data range

Copyright © 1996-2020 Information Builders