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     [CLOSED] ROW TOTAL IS FIRST FIELD

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] ROW TOTAL IS FIRST FIELD
 Login/Join
 
Gold member
posted
 

Hi 

can any one hlep me

i want to displya row total data in first Field

TABLE FILE RPT
SUM CNT.FIELD
BY AVERAGE
ACROSS FIELD AS ''
ON TABLE ROW-TOTAL AS 'Total_DATA'
END

I WANT TO DISPLAY TOTALS IN FIRST FIELD LIKE THIS


        Total_DATA  DATA1   DATA2     
AVERAGE
 2            3       0       3 
 3            22      4       18     
 4            42      0       42      
 5            29      3       26      
 

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 51 | Registered: December 01, 2010Report This Post
Virtuoso
posted Hide Post
Maybe with a multi set request, like:
TABLE FILE RPT
SUM CNT.FIELD
BY AVERAGE

SUM CNT.FIELD
BY AVERAGE
ACROSS FIELD AS ''
ON TABLE ROW-TOTAL AS 'Total'
END


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
The solution Gamp give you is almost what you need, but the ROW-TOTAL should not be added.

the ROW-TOTAL will give you the wrong result as you may notice.
It calculates the sum of ALL columns including the firts one that already is the SUM.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
<FreSte>
posted
Or (there it is again), combine it with FPRINT

TABLE FILE CAR
  SUM COMPUTE TOTCAR/A9 = FPRINT(CNT.CAR, 'I9', 'A9');
    BY COUNTRY

  SUM CNT.CAR
    BY COUNTRY 
    BY CAR
  ACROSS SEATS AS ''
  ON TABLE ROW-TOTAL AS 'Total'
  ON TABLE SET STYLE *
  TYPE=DATA, COLUMN=TOTCAR, JUSTIFY=RIGHT ,$
END
 
Report This Post
<JG>
posted
Actually there appears to be a little bug in the FPRINT function.

It is supposed to right justify the output, so the styling should not be needed, except for the column title.
However it only does the automatic justification with PDF output.
 
Report This Post
Expert
posted Hide Post
I know this was closed, but, consider : "SEQUENCE"
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report 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     [CLOSED] ROW TOTAL IS FIRST FIELD

Copyright © 1996-2020 Information Builders