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     how to group and display columns side by side in webfocus

Read-Only Read-Only Topic
Go
Search
Notify
Tools
how to group and display columns side by side in webfocus
 Login/Join
 
Silver Member
posted
Hi ,

I am getting the output as below from the stored procc:

col1 col2

V1 M1
V2 M2
V1 N1
V2 N2

and i need to display as below

V1 M1+N1
V2 M2+N2

Note i tried subhead on col1 and displayed it displays as below:

V1(subhead)
V1 M1+N1
V2(subhead)
V2 M2+N2


dharma
------------------
WF v 7.1.1
OS - Win XP
Output: PDF, EXL2K
 
Posts: 41 | Location: Boston | Registered: August 17, 2005Report This Post
Platinum Member
posted Hide Post
I'm not real sure what you are asking for, but take a look at this and let me know if we're headed in the right direction.

TABLE FILE CAR
PRINT
COMPUTE CNTR/I3S = IF CAR EQ LAST CAR THEN CNTR + 1 ELSE 1;
BY CAR
BY MODEL
ON TABLE HOLD AS HOLD1
END
-*
TABLE FILE HOLD1
SUM
MODEL
ACROSS CNTR
BY CAR
END

Jim


WF DevStu 5.2.6/WF Srv 5.2.4/Win NT 5.2
 
Posts: 118 | Location: Lincoln Nebraska | Registered: May 04, 2005Report This Post
Platinum Member
posted Hide Post
Is col2 numeric? I get that impression since you have indicated 'M1+N1' and 'M2+N2'. If so then you can just do this:

TABLE FILE SQLOUT
SUM COL2 BY COL1
END

Shouldn't that do it?

Ken


Prod - WF 7.6.4 Unix/Solaris - Self-Service, BI Dashboard, MRE
Dev - WF 7.6.4 Unix/Solaris - Self-Service, BI Dashboard, MRE
Databases: Oracle 10g, SQL Server 2000, DB2.
 
Posts: 177 | Location: Calgary, Alberta, Canada | Registered: April 25, 2005Report This Post
Platinum Member
posted Hide Post
Another interpretation...
Are COL1 and COL2 alphabetical fields and want to concat COL2?

If we have:

COL1      COL2
(COUNTRY) (CAR)

ENGLAND   JAGUAR
ENGLAND   JENSEN
ENGLAND   TRIUMPH
ITALY     ALFA ROMEO
ITALY     MASERATI
...       ...

And we want concat COL2 by COL1:

ENGLAND   JAGUAR+JENSEN+TRIUMPH
ITALY     ALFA ROMEO+MASERATI
...       ... 

We need a report like this:

TABLE FILE CAR
  SUM CNT.CAR NOPRINT BY COUNTRY 
  SUM 
    COMPUTE I/I2 = IF COUNTRY EQ LAST COUNTRY THEN I + 1 ELSE 1 ; NOPRINT
    COMPUTE KEY/A250 = 
      IF I EQ 1 THEN CAR 
      ELSE SUBSTR(200, LAST KEY, 1, I*16, I*16, 'A200') || '+' || CAR ;
  BY COUNTRY
  BY CAR NOPRINT
  WHERE TOTAL I EQ C1
END


Mikel

This message has been edited. Last edited by: Mikel,


WebFOCUS 8.1.05, 8.2.01
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Report 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     how to group and display columns side by side in webfocus

Copyright © 1996-2020 Information Builders