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.
I am trying to create a report where I want to put some fields right of a across total. Can someone please help me?
here is a sample code using the car file where the sales is left of the across data. I want to be able to put "the total sales" to be right side "the total of seats".
TABLE FILE CAR SUM CAR.BODY.SALES BY CAR.ORIGIN.COUNTRY SUM CAR.BODY.SEATS BY CAR.ORIGIN.COUNTRY ACROSS LOWEST CAR.COMP.CAR ACROSS-TOTAL ON TABLE SET PAGE-NUM NOLEAD ON TABLE SET ASNAMES ON ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT HTML ON TABLE SET HTMLEMBEDIMG ON ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty, $ ENDSTYLE END
thanks,
VeraThis message has been edited. Last edited by: FP Mod Chuck,
WebFOCUS 8.2.0.7, Application Studio, Webfocus Info-Assist iWay Service Manager, iWay Data Migrator Windows, All Outputs IBM DB2/400, MS SQL-Server 2014
TABLE FILE CAR
SUM
CAR.BODY.SALES NOPRINT
BY CAR.ORIGIN.COUNTRY
SUM
CAR.BODY.SEATS
BY CAR.ORIGIN.COUNTRY
ACROSS LOWEST CAR.COMP.CAR ACROSS-TOTAL
RECAP TOTSALES/D15 = C1 ;
-* C1 refers to the sales of first SUM verb.
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty, $
END
I have added a column-total by in some cases I do not want the RECAP columns (in this case seats) not to be calculated. I tried to just total the columns I want but it is not working. Does someone know to do it?
here is the complete code:
TABLE FILE CAR SUM CAR.BODY.SALES NOPRINT BY CAR.ORIGIN.COUNTRY SUM CAR.BODY.SEATS BY CAR.ORIGIN.COUNTRY ACROSS LOWEST CAR.COMP.CAR ACROSS-TOTAL RECAP TOTSALES/D15 = C1 ;
ON TABLE SET PAGE-NUM NOLEAD ON TABLE SET ASNAMES ON ON TABLE COLUMN-TOTAL AS 'TOTAL' 'CAR.BODY.SEATS' ON TABLE PCHOLD FORMAT HTML ON TABLE SET HTMLEMBEDIMG ON ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty, $ ENDSTYLE END
thanks, Vera
WebFOCUS 8.2.0.7, Application Studio, Webfocus Info-Assist iWay Service Manager, iWay Data Migrator Windows, All Outputs IBM DB2/400, MS SQL-Server 2014
I have added a column-total by in some cases I do not want the RECAP columns (in this case seats) not to be calculated
This is not clear what you are asking.
You don't want the Seats total but want the Sales at the right ?
Use Mikel sample but without the word ACROSS-TOTAL
If still not what you're asking, provide a data output sample (don't forget to use the code tag. It will keep your sample alignment and make it easier to read)
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
in the column-total line (ON TABLE COLUMN-TOTAL AS 'TOTAL' 'CAR.BODY.SEATS' ),I do want the seats to totaled but not the sales. In my real sample report instead of sales I have Average cost.
Sorry to ask but how can I do the code-tag?
thanks
WebFOCUS 8.2.0.7, Application Studio, Webfocus Info-Assist iWay Service Manager, iWay Data Migrator Windows, All Outputs IBM DB2/400, MS SQL-Server 2014
Firstly, if you work with computed statistical variables (Percentages, averages...) consider using RECOMPUTE or SUMMARIZE instead of COLUMN-TOTAL.
In the example, depending what do you want to sum, use case 1 (SUMMARIZE), 2 (SUMMARIZE SEATS), 3 (SUMMARIZE C3, based on RECAP output order):
TABLE FILE CAR
SUM
CAR.BODY.SALES NOPRINT
BY CAR.ORIGIN.COUNTRY
SUM
CAR.BODY.SEATS
BY CAR.ORIGIN.COUNTRY
ACROSS LOWEST CAR.COMP.CAR ACROSS-TOTAL
RECAP TOTSALES/D15 = C1 ;
-* 1. Summarize all
-* ON TABLE SUMMARIZE AS 'Total'
-* Summarize SEATS AND Recap TOTSALES
-* ON TABLE SUMMARIZE SEATS C3 AS 'Total'
-* 2. Summarize only Seats
-* ON TABLE SUMMARIZE SEATS AS 'Total'
-* 3. Summarize only Recap TOTSALES
ON TABLE SUMMARIZE C3 AS 'Total'
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,$
END
And finally... "use the code tag" means publish the code between tags. Yo can use the last tool icon provided in post window.
WebFOCUS 8.2.0.7, Application Studio, Webfocus Info-Assist iWay Service Manager, iWay Data Migrator Windows, All Outputs IBM DB2/400, MS SQL-Server 2014
WebFOCUS 8.2.0.7, Application Studio, Webfocus Info-Assist iWay Service Manager, iWay Data Migrator Windows, All Outputs IBM DB2/400, MS SQL-Server 2014
WebFOCUS 8.2.0.7, Application Studio, Webfocus Info-Assist iWay Service Manager, iWay Data Migrator Windows, All Outputs IBM DB2/400, MS SQL-Server 2014