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 have a report that has totals of the columns and also an across field on the top. When I added a row total on the far right, the column title appears blank.
1) How do I add a column title to a row total that has an across?
2) How do I move this entire column and title to the far left of my report, so the row total column is the first column of the report?
Thank you!This message has been edited. Last edited by: Kerry,
Would you please provide and example of this dilemma? Place your code sample within the < / > brackets from the above icons. It's probably as simple as adding row and column totals.
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
TABLE FILE C_LOAN
SUM
CNT.C_LOAN.C_Loan.Loan_Number/I11C AS '# Loans'
COMPUTE totalbal/D20.2CM = C_LOAN.C_Loan.Balance1 + C_LOAN.C_Loan.Balance2; AS '$ Balance'
BY LOWEST C_LOAN.C_Loan.loantype AS 'Loan Type'
ACROSS LOWEST J0.C_Flags.bucksort NOPRINT
ACROSS J0.C_Flags.bucket AS 'Delinquency Status'
WHERE (( C_LOAN.C_Loan.Balance1 GT 0 ) OR ( C_LOAN.C_Loan.Active_Indicator EQ 'A' ));
WHERE RECORDLIMIT EQ 1000
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE ROW-TOTAL AS 'TOTAL'
ON TABLE COLUMN-TOTAL AS 'TOTAL'
ON TABLE PCHOLD FORMAT EXL07
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt,
$
TYPE=ACROSSVALUE,
ACROSS=1,
BACKCOLOR='WHITE',
$
ENDSTYLE
END
I wasn't able to sort my across, so I added a defined field translating my across field, and then made that invisible.
I am able to see the title of the total column now, so I only need to move that column to the far left so it's the first column - Any thoughts?
One way of doing this is using multi verb request.
here is an example
TABLE FILE CAR
SUM RETAIL_COST AS 'Total'
BY COUNTRY
SUM RETAIL_COST
BY COUNTRY
ACROSS MODEL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE COLUMN-TOTAL AS 'TOTAL'
END
-EXIT
thanks Sashanka
WF 7.7.03/Windows/HTML,PDF,EXL POC/local Dev Studio 7.7.03 & 7.6.11
I tried SEQUENCE on the Row Total but it did not like it. I had to do it in some reports and because of the involved styling constraints I used a loop of DEFINEd variables as columns instead of ACROSS.
So yes, I think Multi Verb is the simplest way of achieving it unless someone has an easier way (hopefully).
thanks SashankaThis message has been edited. Last edited by: Severus.snape,
WF 7.7.03/Windows/HTML,PDF,EXL POC/local Dev Studio 7.7.03 & 7.6.11
Severus has already given you the easiest method possible. Any other method could involve multi-pass and/or styling.
Take this sample code which is more in tune with your example -
DEFINE FILE GGSALES
YEAR/YY = DATE;
MONTH/M = DATE;
END
TABLE FILE GGSALES
SUM CNT.DOLLARS/I11C AS '# Rows'
COMPUTE TOTALBAL/D20.2CM = DOLLARS + BUDDOLLARS; AS '$ Balance'
BY PRODUCT
ACROSS YEAR NOPRINT
ACROSS MONTH AS 'Month'
WHERE YEAR EQ '1997'
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE ROW-TOTAL AS 'Total'
ON TABLE COLUMN-TOTAL AS 'Total'
-*ON TABLE PCHOLD FORMAT EXL07
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt, $
TYPE=ACROSSVALUE, ACROSS=1, BACKCOLOR='WHITE', $
ENDSTYLE
END
and make it look like this. it's just a case of copying and pasting three lines of code. What could be simpler? Unless there's another reason that you cannot / do not like the solution that Severaus has suggested?
DEFINE FILE GGSALES
YEAR/YY = DATE;
MONTH/M = DATE;
END
TABLE FILE GGSALES
SUM CNT.DOLLARS/I11C AS '# Rows'
COMPUTE TOTALBAL/D20.2CM = DOLLARS + BUDDOLLARS; AS '$ Balance'
BY PRODUCT
SUM CNT.DOLLARS/I11C AS '# Rows'
COMPUTE TOTALBAL/D20.2CM = DOLLARS + BUDDOLLARS; AS '$ Balance'
BY PRODUCT
ACROSS YEAR NOPRINT
ACROSS MONTH AS 'Month'
WHERE YEAR EQ '1997'
ON TABLE SET PAGE-NUM NOLEAD
-*ON TABLE ROW-TOTAL AS 'Total'
ON TABLE COLUMN-TOTAL AS 'Total'
-*ON TABLE PCHOLD FORMAT EXL07
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt, $
TYPE=ACROSSVALUE, ACROSS=1, BACKCOLOR='WHITE', $
ENDSTYLE
END
Or do you actually mean that you want the totals before the BY column? If that is the case then try this -
SUM CNT.DOLLARS/I11C AS '# Rows'
COMPUTE TOTALBAL/D20.2CM = DOLLARS + BUDDOLLARS; AS '$ Balance'
BY PRODUCT NOPRINT
SUM CNT.DOLLARS/I11C AS '# Rows'
COMPUTE TOTALBAL/D20.2CM = DOLLARS + BUDDOLLARS; AS '$ Balance'
BY PRODUCT NOPRINT
BY PRODUCT AS 'Product'
TThis message has been edited. Last edited by: Tony A,
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004