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.
My problem is that my client wants the Total Column (ACROSS-TOTAL) to be the first column. The code is as follows. Any help would be appreciated.
SET EMPTYREPORT = ON -*SET NODATA = JOIN CLEAR * JOIN TBLMRCHINFO.ACCOUNTSTATUS1 IN TBLMRCHINFO TO TBLTYPEACCOUNTSTATUS.ACCOUNTSTATUS IN TBLTYPEACCOUNTSTATUS AS J2 END JOIN TBLMRCHINFO.REPCODE IN TBLMRCHINFO TO TBL_REPS.REPCODE IN TBL_REPS AS J3 DEFINE FILE TBLMRCHINFO STATUS_NUM/A1 = IF (ACCOUNTSTATUS1 LE 11) THEN '1' ELSE IF (ACCOUNTSTATUS1 EQ 15) THEN '2' ELSE IF ((ACCOUNTSTATUS1 EQ 53) OR (ACCOUNTSTATUS1 EQ 105)) THEN '3' ELSE IF ((ACCOUNTSTATUS1 EQ 52) OR (ACCOUNTSTATUS1 EQ 90)) THEN '4' ELSE IF ((ACCOUNTSTATUS1 EQ 99) OR (ACCOUNTSTATUS1 EQ 100)) THEN '4' ELSE '0'; STATUS_DESC/A40 = DECODE STATUS_NUM('1' 'Initial Proposal' '2' 'Pending Customer Approval' '3' 'Pending Credit' '4' 'Complete/Boarded'); LENSALECHNL/I2 = ARGLEN(50, SALESCHANNEL, LENSALECHNL); Day/YYMD=HDATE ( CREATEDATE,'YYMD'); HOURS/I2=HPART ( CREATEDATE, 'hour', 'I2'); Year/YY=Day; Month/Mt=Day; Qtr/Q=Day; Date/D=Day; END TABLE FILE TBLMRCHINFO SUM CNT.MRCHID/I11C AS 'Total Accounts Created' OUTLETVOLUME/P19M AS 'Total, Signed, Volume' BY Year BY Month ACROSS STATUS_DESC AS '' ACROSS-TOTAL WHERE STATUS_NUM NE '0' AND LENSALECHNL GE 1; HEADING "Account Summary by Month" " " ON TABLE SET PAGE-NUM OFF ON TABLE COLUMN-TOTAL AS 'TOTAL' ON TABLE SET ONLINE-FMT HTML ON TABLE SET HTMLCSS ON
The easiest thing that comes to mind is to use a multi-verb request.
I'm including a fex as a sample. It's functionally the same as the one you provide, but much simplified. The second request shows the multi-verb.
TABLE FILE CAR SUM RCOST/D9 DCOST/D9 BY COUNTRY BY CAR ACROSS SEATS -*ACROSS-TOTAL ON TABLE ROW-TOTAL END TABLE FILE CAR SUM RCOST/D9 AS 'TOTAL,RCOST' DCOST/D9 AS 'TOTAL,DCOST' BY COUNTRY BY CAR SUM RCOST/D9 DCOST/D9 BY COUNTRY BY CAR ACROSS SEATS END