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     Conditional styling for Subtoal

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Conditional styling for Subtoal
 Login/Join
 
<Viswa>
posted
Hai

I want conditional styling for Sub toals at column and not at row level.
Ex:
TABLE FILE CAR
PRINT CAR
MODEL
DEALER_COST
RETAIL_COST
BY COUNTRY
ON COUNTRY SUBTOTAL
ON TABLE SET ONLINE-FMT HMTL
END

We will get subtotal's for DEALER_COST and RETAIL_COST. We want subtoal for dealer_cost to be GREEN, if the value is greater than 10000.(NOTE: we want only the subtotal for dealer_cost to be in GREEN rather than full SUBTOTAL row). How can we acheive this?

Thanks
Viswakanth
 
Report This Post
<Grzegorz>
posted
Try this:


TABLE FILE CAR
PRINT CAR
MODEL
DEALER_COST
RETAIL_COST
COMPUTE TOT_DC/D12.2 = IF COUNTRY EQ LAST COUNTRY THEN TOT_DC + DEALER_COST
ELSE DEALER_COST; NOPRINT
COMPUTE TOT_RC/D12.2 = IF COUNTRY EQ LAST COUNTRY THEN TOT_RC + RETAIL_COST
ELSE RETAIL_COST; NOPRINT
BY COUNTRY
ON COUNTRY SUBTOTAL
ON TABLE SET ONLINE-FMT HMTL
ON TABLE SET STYLE *
TYPE=SUBTOTAL, COLUMN=DEALER_COST, COLOR=GREEN, BACKCOLOR=YELLOW, WHEN=TOT_RC GT 10000,$
ENDSTYLE
END
(WF 5.2.4)

This message has been edited. Last edited by: <Mabel>,
 
Report This Post
<Grzegorz>
posted
Correction:
There is:
WHEN=TOT_RC GT 10000,$
sould be:
WHEN=TOT_DC GT 10000,$
 
Report This Post
<Grzegorz>
posted
Sorry for the 3 parts answer, but this "simplified" (i.e. normal) version is also working:

TABLE FILE CAR
PRINT CAR
MODEL
DEALER_COST
RETAIL_COST
BY COUNTRY
ON COUNTRY SUBTOTAL
ON TABLE SET ONLINE-FMT HMTL
ON TABLE SET STYLE *
TYPE=SUBTOTAL, COLUMN=DEALER_COST, COLOR=GREEN, BACKCOLOR=YELLOW, WHEN=DEALER_COST GT 10000,$
ENDSTYLE
END

This message has been edited. Last edited by: <Mabel>,
 
Report 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     Conditional styling for Subtoal

Copyright © 1996-2020 Information Builders