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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Negative Red
 Login/Join
 
Virtuoso
posted
Same program...different problem. Make the negative value red. Because the compute is after the across...the WHEN= does not seem to work. Any thoughts on how to fool it?

TABLE FILE CAR
SUM DEALER_COST/D7B
BY SEATS SUBTOTAL
ACROSS CAR
COMPUTE TOT/D7B = (C1 + C3 + C5 + C7 + C9 + C11)/6; AS Average
COMPUTE CW/D14B = TOT - DEALER_COST;
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
GRID=ON,
ORIENTATION=LANDSCAPE,$
TYPE=DATA,COLOR='RED',COLUMN=CW,WHEN=CW LT 0,$
TYPE=DATA,BACKCOLOR='LIME',FIELD=TOT,$
TYPE=DATA,BACKCOLOR='YELLOW',FIELD=CW,$
TYPE=SUBTOTAL,BACKCOLOR='SILVER',$
TYPE=TITLE,
BACKCOLOR='SILVER',$

ENDSTYLE
END


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Virtuoso
posted Hide Post
Prarie

I have done this, but you need to wait till I'm back at the office.

Tomorrow...




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
Master
posted Hide Post
If you know how many across values you will have you can specify the computed field by it's column position.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
Yep you would think that would work...but no columns postion does not work either.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Virtuoso
posted Hide Post
Frank? Roll Eyes


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Virtuoso
posted Hide Post
Yes Prarie

I looked it up in my code, but found the same problem
The colors I have in a across report were not on the totals or computed fields, and I remember I have asked this some months ago.

What you can do, is put the intermediate results in a hold file and do the coloring in the next part.
But that only gives you the problem of naming the columns.




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
Gold member
posted Hide Post
Hi,

The following should work, the only thing is that you already must know the number of the column, in this case C13. This would require an additional step before the final report, I guess, counting the number of cars.

TABLE FILE CAR
SUM DEALER_COST/D7B
BY SEATS SUBTOTAL
ACROSS CAR
COMPUTE TOT/D7B = (C1 + C3 + C5 + C7 + C9 + C11)/6; AS Average
COMPUTE TOT2/D7B = DEALER_COST;
COMPUTE CW/D14B = TOT - DEALER_COST;
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, GRID=ON, ORIENTATION=LANDSCAPE,$
TYPE=DATA,BACKCOLOR='LIME',FIELD=TOT,$
TYPE=DATA,BACKCOLOR='YELLOW',FIELD=CW,$
TYPE=DATA,COLOR='RED', COLUMN=CW,WHEN=C13 LT 0,$
TYPE=SUBTOTAL,BACKCOLOR='SILVER',$
TYPE=TITLE,
BACKCOLOR='SILVER',$
ENDSTYLE
END
-RUN


Regards,
Mika


WebFOCUS 7.6.x
PMF 5.2.x
 
Posts: 58 | Location: Sydney, Australia | Registered: April 22, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders