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     [SOLVED] How to Merge Excel Columns

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How to Merge Excel Columns
 Login/Join
 
Platinum Member
posted
WF 8105m

How do I merge my subtotals to span two columns? I also need to put a total in say Row 6 Column E. Here is a car file.

I want to merge column A and B for each Bodytype subtotal and put "Total Bodytype" on same line but in Column E.

 
DEFINE FILE CAR
BOD2/A40 WITH BODY= IF BODYTYPE EQ 'CONVERTIBLE' THEN 'BODY TYPE: CONVERTIBLE' ELSE
                    IF BODYTYPE EQ 'COUPE'       THEN 'BODY TYPE: COUPE'     ELSE
                    IF BODYTYPE EQ 'HARDTOP'     THEN 'BODY TYPE: HARDTOP'     ELSE
					IF BODYTYPE EQ 'ROADSTER'    THEN 'BODY TYPE: ROADSTER'    ELSE
					IF BODYTYPE EQ 'SEDAN'       THEN 'BODY TYPE: SEDAN';
END
TABLE FILE CAR
PRINT   *
ACROSS COUNTRY  
BY BODY
BY BOD2 NOPRINT SUBTOTAL AS ''
ON TABLE PCHOLD FORMAT EXL07
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=LANDSCAPE,
$
TYPE=SUBTOTAL
     OBJECT=TEXT,
     LINE=1,
	 COLSPAN=2,
$
END 

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8105m
Windows, All Outputs
 
Posts: 156 | Registered: August 23, 2010Report This Post
Platinum Member
posted Hide Post
Thanks JV. How do I upload a file here?


WebFOCUS 8105m
Windows, All Outputs
 
Posts: 156 | Registered: August 23, 2010Report This Post
Platinum Member
posted Hide Post
I figured this one out. Here is the updated code.

 DEFINE FILE CAR
SUBTOT/A20   WITH COUNTRY = '*Total Cost';
END
TABLE FILE CAR
PRINT   DEALER_COST RETAIL_COST SALES LENGTH WIDTH HEIGHT WEIGHT WHEELBASE FUEL_CAP BHP RPM MPG ACCEL 
BY  LOWEST COUNTRY
BY  LOWEST CAR
-*BY  MODEL

BY SUBTOT    NOPRINT SUBTOTAL DEALER_COST RETAIL_COST  AS ''
BY MODEL      
BY BODYTYPE   
BY SEATS      
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
-*ON TABLE PCHOLD FORMAT EXL07
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
TYPE=SUBTOTAL,
     BY=3,
     COLOR='RED',
	 JUSTIFY=RIGHT,
$
ENDSTYLE
END 


WebFOCUS 8105m
Windows, All Outputs
 
Posts: 156 | Registered: August 23, 2010Report 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     [SOLVED] How to Merge Excel Columns

Copyright © 1996-2020 Information Builders