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 do I split Column heading

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How do I split Column heading
 Login/Join
 
Member
posted
I have table like below.

DOC NAME REGIONAL AREA OFFICE COUNT AMOUNT
OFFICE

but needs to change like below. Column names count and amount has to split and one more heading like "Approval Rate (%)"

Approval Rate(%)
DOC NAME REGIONAL AREA OFFICE COUNT AMOUNT
OFFICE

Could you please help?

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 15 | Registered: August 13, 2018Report This Post
Virtuoso
posted Hide Post
Maybe it's because we're Friday but I don't understand what you are requesting.

Can you reproduce with IB sample file such as CAR ? Or at least provide more information.

Please, when providing code sample, data sample or result sample use the code tag which is the last one on the ribbon :
</>

TABLE FILE CAR
SUM RETAIL AS 'This is,Retail $'
BY COUNTRY AS 'This is, Country'
BY CAR AS 'This is, Car'
HEADING
"This is the Heading"
END


Thanks


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, 2013Report This Post
Platinum Member
posted Hide Post
No MartinY, it's not just because it's Friday Big Grin . Raju, please be clear on exactly what you are looking for. As far as I can tell from looking at your question and example it looks as though you just want to add an additional heading above the columns. You can do what Martin showed or:

 TABLE FILE CAR
BY  CAR.ORIGIN.COUNTRY
BY  CAR.COMP.CAR
BY  CAR.CARREC.MODEL
ON TABLE SUBHEAD
"Approval Rate(%)"
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/warm.sty,
$
ENDSTYLE
END 


If this is not what you are looking for please provide some more information for us.


JC
WebFOCUS Dev Studio / App Studio
8.2.01
Windows 7
 
Posts: 146 | Registered: November 09, 2015Report This Post
Member
posted Hide Post
I am sorry for late reply.

I am looking table like below.

I need to generate data for 5 columns.

column1 doc, column2 Name, column3 regional office, column 4 area office and column five Approval rate (%) is sub head and below Count and amount separate columns.

Column 5 example like below.
--------------------
Approval Rate (%)
--------------------
Count | Amount

1 | $123
2 | $567

Count and Amount columns and data populated correctly but I need to add "Approval Rate (%)" heading on above the count and amount columns.

Thank you for your help.
 
Posts: 15 | Registered: August 13, 2018Report This Post
Virtuoso
posted Hide Post
What would the formula be for the approval rate?


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Platinum Member
posted Hide Post
Raju,
try something like this,
  
DEFINE FILE A
AR/A20 = 'Approval rate (%)';
END 

TABLE FILE A
SUM
Count 
Amount 
BY doc
BY NAME
BY RAGIONAL OFFICE
ACROSS AS AS ''
END


WF Production :- WF:8.0.0.4, 8.1.05 App-studio/Developer Studio(8.1.x) ,
8.2.0.1M , 8.2.0.2 (App-Studio8.2.x),
InfoAssist/+, InfoDiscovery
Output format:-AHTML, PDF, Excel, HTML
Platform:-Windows 7, 8,10
 
Posts: 186 | Location: Infobuild India | Registered: August 28, 2015Report This Post
Expert
posted Hide Post
Perhaps one of the easier(?) methods of doing this could be the following in which I've coloured the cells that I think you are trying to manipulate. -

TABLE FILE CAR
SUM RCOST AS ''
    DCOST AS ''
BY  COUNTRY AS ''
BY  CAR AS ''
BY  MODEL AS ''
ON TABLE SUBHEAD
" <+0> <+0> <+0>Approval Rate(%)"
"Country<+0>Manufacturer<+0>Model<+0>Retail<+0>Cost"
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/warm.sty, $
  TYPE=REPORT, HEADALIGN=BODY, $
  TYPE=TABHEADING, SIZE=10, STYLE=-BOLD, $
  TYPE=TABHEADING, LINE=1, ITEM=4, JUSTIFY=CENTER, BACKCOLOR=RGB(200 200 200), COLSPAN=2, $
  TYPE=TABHEADING, LINE=2, ITEM=4, JUSTIFY=CENTER, BACKCOLOR=RGB(200 200 200), $
  TYPE=TABHEADING, LINE=2, ITEM=5, JUSTIFY=CENTER, BACKCOLOR=RGB(200 200 200), $
ENDSTYLE
END


T



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, 2004Report This Post
Member
posted Hide Post
I have code like this for count and amount, but I need to add heading or subheading "Approval Rate (%)"

TABLE FILE WAIVDB
SUM
COMPUTE REG_CNT_PCT/D6.2%= IF (HWVRGRP EQ 'Regular' OR 'Denial')
THEN (REG / TOT_CNT) * 100 ELSE 0;
AS 'COUNT'

COMPUTE REG_AMT_PCT/D6.2%= IF (HWVRGRP EQ 'Regular' OR 'Denial')
THEN (HWVAAMT / (HWVAAMT + HWVDAMT) * 100) ELSE 0;
AS 'AMOUNT'

HEADING CENTER
" FY2018 TOP FOs (>50 Waivers,>80% Approval Rate) "
ON TABLE HOLD AS FOSS FORMAT EXL2K MISSING OFF
ON TABLE SET STYLE *
TYPE=REPORT, FONT=TREBUCHET MS, GRID=ON, BORDER=HEAVY,$
ENDSTYLE
END
 
Posts: 15 | Registered: August 13, 2018Report This Post
Guru
posted Hide Post
Something like this?
 
TABLE FILE CAR
SUM SALES
COMPUTE RATE/D5.2%= RETAIL_COST / DEALER_COST; NOPRINT

BY COUNTRY
ON COUNTRY SUBHEAD
"Approval rate (%) for < COUNTRY : <RATE"

END
 


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 454 | Location: Europe | Registered: February 05, 2007Report This Post
Member
posted Hide Post
SUB heading is not dynamic "Approval Rate (%)", two columns: count and amount, on top of those two columns sub heading is "Approval Rate (%)"

all the data populates only I need to add sub-heading
 
Posts: 15 | Registered: August 13, 2018Report This Post
Platinum Member
posted Hide Post
Already a solution is shown, see some post over this by Tony A.

Kofi


Client Server 8.1.05: Apache; Tomcat;Windows Server 2012
Reporting Server 8.1.05; Oracle; MS SQL; Windows Server 2012
 
Posts: 106 | Registered: April 06, 2009Report 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 do I split Column heading

Copyright © 1996-2020 Information Builders