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] sort group row numbering

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] sort group row numbering
 Login/Join
 
Member
posted
Hi,
I have a report that has several groups of rows. I want to number each row in a group starting from 1. For example, if group 1 has 10 rows, they will be numbered from 1 to 10, then if group 2 has 15 rows it will be numbered from 1 to 15. How do I do that in Webfocus?
Thanks
Abu

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 14 | Registered: October 27, 2011Report This Post
Gold member
posted Hide Post
Create a counter field.
COMPUTE RANK1/I9 = IF (sortfield1 NE LAST sortfield1) THEN 1 ELSE RANK1 + 1;


WF 7.6.10, Windows, PDF, Excel
 
Posts: 75 | Location: Dallas, TX | Registered: February 12, 2004Report This Post
Member
posted Hide Post
Thanks Mary, it works perfectly as I wanted.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 14 | Registered: October 27, 2011Report This Post
Expert
posted Hide Post
Well put Mary,

Try this (SEQUENCE):
TABLE FILE CAR
PRINT MODEL
COMPUTE RANK1/I9 = IF (COUNTRY NE LAST COUNTRY) THEN 1 ELSE RANK1 + 1;
BY COUNTRY
BY CAR
ON TABLE SET STYLE *
TYPE=REPORT, COLUMN=RANK1, SEQUENCE=1,$
ENDSTYLE
END
Smiler
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Virtuoso
posted Hide Post
If you want to renumber on the outer BY field only, use the original LIST:
  
TABLE FILE CAR
LIST MODEL
BY COUNTRY
BY CAR
ON TABLE SET STYLE *
TYPE=REPORT, COLUMN=LIST, SEQUENCE=1,$
ENDSTYLE
END


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report 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] sort group row numbering

Copyright © 1996-2020 Information Builders