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     Subtotal Stylesheet Help Please

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Subtotal Stylesheet Help Please
 Login/Join
 
Gold member
posted
hi,

i have a subtotal on a report, and i use drill a down menu on it. However, it highlights everything, even the "0" values and the word "TOTAL", how do i specify, to only drill down on values that are GT 0?


~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~
PROD: WebFOCUS 7.1.3 on Win 2K/IIS 6/ISAPI Mode/Self-Serve Apps Only (No App Server)
TEST: WebFOCUS 7.1.3 on Win 2K/IIS 6/Weblogic 8.1/Servlet Mode
 
Posts: 74 | Location: Gaithersburg, MD | Registered: August 08, 2006Report This Post
Expert
posted Hide Post
Here's an example:
TABLE FILE CAR
SUM
SALES
BY COUNTRY
BY CAR
ON COUNTRY SUBTOTAL
ACROSS SEATS
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF,
FONT='ARIAL', SIZE=8, $
TYPE=SUBTOTAL, ACROSSCOLUMN=SALES, FOCEXEC=SS, WHEN=SALES GT 0, $
ENDSTYLE
END

I use an ACROSS to be able to have some zeros in the subtotals.

The key is to specify the column name in the drilldown stylesheet entry (in my case, ACROSSCOLUMN=SALES) and to add the WHEN (WHEN=SALES GT 0) clause.

PS. I like your name, MadamZuZu.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
HI Smiler
Thanks Smiler

it almost worked Frowner

however, i use ON TABLE SUBTOTAL, and in the stylesheet i'm using "GRANDTOTAL" instead of "SUBTOTAL", it seems to be working with SUBTOTAL, but not with GRANDTOTAL. Frowner

why is that?


~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~
PROD: WebFOCUS 7.1.3 on Win 2K/IIS 6/ISAPI Mode/Self-Serve Apps Only (No App Server)
TEST: WebFOCUS 7.1.3 on Win 2K/IIS 6/Weblogic 8.1/Servlet Mode
 
Posts: 74 | Location: Gaithersburg, MD | Registered: August 08, 2006Report This Post
Expert
posted Hide Post
Seems to be working for me:
TABLE FILE CAR
SUM
SALES
BY COUNTRY
BY CAR
ACROSS SEATS COLUMNS 2 AND 3 AND 4 AND 5
ON COUNTRY SUBTOTAL AS 'Sub Total'
ON TABLE SUBTOTAL AS 'Total'
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF,
FONT='ARIAL', SIZE=8, $
TYPE=GRANDTOTAL, ACROSSCOLUMN=SALES, FOCEXEC=SS, WHEN=SALES GT 0, $
ENDSTYLE
END


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
gosh, sorry to waste yoru time. Smiler

i'm also using SUM CNT.MYFIELD...
so in the sylesheet i used CNT.MYFIELD as well, is that correct? could that be the problem?

i played with the car table file for a little bit, and


this works:
TABLE FILE CAR
SUM CNT.SALES
BY COUNTRY
BY CAR
ON COUNTRY SUBTOTAL
ACROSS SEATS
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF,
FONT='ARIAL', SIZE=8, $
TYPE=SUBTOTAL, ACROSSCOLUMN=CNT.SALES, FOCEXEC=SS, WHEN=CNT.SALES GT 0, $
ENDSTYLE
END



this doesn't
TABLE FILE CAR
SUM CNT.SALES
BY COUNTRY
BY CAR
ON COUNTRY SUBTOTAL
ACROSS SEATS
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF,
FONT='ARIAL', SIZE=8, $
TYPE=GRANDTOTAL, ACROSSCOLUMN=CNT.SALES, FOCEXEC=SS, WHEN=CNT.SALES GT 0, $
ENDSTYLE
END


~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~
PROD: WebFOCUS 7.1.3 on Win 2K/IIS 6/ISAPI Mode/Self-Serve Apps Only (No App Server)
TEST: WebFOCUS 7.1.3 on Win 2K/IIS 6/Weblogic 8.1/Servlet Mode
 
Posts: 74 | Location: Gaithersburg, MD | Registered: August 08, 2006Report This Post
Expert
posted Hide Post
This works just fine. The drilldown is on the non-zero columns of the grand total line.
TABLE FILE CAR
SUM CNT.SALES
BY COUNTRY
BY CAR
ON COUNTRY SUBTOTAL
ACROSS SEATS COLUMNS 2 AND 3 AND 4 AND 5
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF,
FONT='ARIAL', SIZE=8, $
TYPE=GRANDTOTAL, ACROSSCOLUMN=CNT.SALES, FOCEXEC=SS, WHEN=CNT.SALES GT 0, $
ENDSTYLE
END


When you say "this doesn't (work)", what do you mean?


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
"this doesn't work" - nothing is highlighted.

but i just got it to work (with Mickey's help) Smiler

had to make a dummy counter field to reference, instead of the actualy "sales" field itself.

Thanks Smiler


~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~
PROD: WebFOCUS 7.1.3 on Win 2K/IIS 6/ISAPI Mode/Self-Serve Apps Only (No App Server)
TEST: WebFOCUS 7.1.3 on Win 2K/IIS 6/Weblogic 8.1/Servlet Mode
 
Posts: 74 | Location: Gaithersburg, MD | Registered: August 08, 2006Report This Post
Expert
posted Hide Post
Must have something to do with the version, we're at 5.3.3 - what is yours?


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
7.1.3

here is what we did:

TABLE FILE CAR
SUM CNT.SALES NOPRINT
COMPUTE DUMMY/I5=CNT.SALES;

BY COUNTRY
BY CAR
ON COUNTRY SUBTOTAL
ACROSS SEATS
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF,
FONT='ARIAL', SIZE=8, $
TYPE=GRANDTOTAL, ACROSSCOLUMN=DUMMY, FOCEXEC=SS, WHEN=DUMMY GT 5, $
ENDSTYLE
END


~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~
PROD: WebFOCUS 7.1.3 on Win 2K/IIS 6/ISAPI Mode/Self-Serve Apps Only (No App Server)
TEST: WebFOCUS 7.1.3 on Win 2K/IIS 6/Weblogic 8.1/Servlet Mode
 
Posts: 74 | Location: Gaithersburg, MD | Registered: August 08, 2006Report 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     Subtotal Stylesheet Help Please

Copyright © 1996-2020 Information Builders