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] SORT HIGHEST COUNT

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] SORT HIGHEST COUNT
 Login/Join
 
Member
posted
I am counting fielda with row-total. i am using across on fieldb.
how can i sort highest to lowest on the row totals?


TABLE FILE FILE1
COUNT Fielda COLUMN-TOTAL ROW-TOTAL

ACROSS Fieldb

BY Fieldc
BY Fieldd

END

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


WebFocus 7.6
Windows Server
PDF output
 
Posts: 5 | Location: JRMC | Registered: February 08, 2011Report This Post
<FreSte>
posted
Like this ?

TABLE FILE CAR
  SUM 
    DEALER_COST 
    RETAIL_COST
  BY HIGHEST TOTAL SEATS
  BY COUNTRY
  SUM 
    DEALER_COST 
    RETAIL_COST
  BY SEATS
  BY COUNTRY
  ACROSS BODYTYPE
END
 
Report This Post
Member
posted Hide Post
Here is my code.
I would like to not have to use a hold file to do this.
I am using COUNT and trying to sort by highest COUNT.

 
APP HOLD HOLDFEX

DEFINE FILE FILEA
PRDGRP/A15=IF HSCODE EQ 69 THEN 'PRD1' ELSE
          IF HSCODE EQ 1 OR 3 OR 11 OR 17 OR 25
            OR 39 OR 41 OR 43 OR 53 OR 79 THEN       
          'PRD2' ELSE
          IF HSCODE EQ 119 THEN 'PRD3' ELSE
          'PRD4';
END
 
TABLE FILE FILEA
COUNT MRN_R COLUMN-TOTAL ROW-TOTAL

ACROSS PRDGRP

BY FIELD1
BY FIELD2
BY FIELD3

IF FIELD4 EQ 'AA'

ON TABLE HOLD AS NEWTABLE FORMAT FOCUS
END

TABLE FILE NEWTABLE
PRINT 
FIELD1
FIELD2 AS 'DESCRIPTION'
FIELD6 AS 'PRD1'
FIELD7 AS 'PRD2'
FIELD8 AS 'PRD3'
FIELD9 AS 'PRD4'
ROWTOTAL AS 'TOTAL' COLUMN-TOTAL

BY HIGHEST ROWTOTAL NOPRINT 


WebFocus 7.6
Windows Server
PDF output
 
Posts: 5 | Location: JRMC | Registered: February 08, 2011Report 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] SORT HIGHEST COUNT

Copyright © 1996-2020 Information Builders