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] Accumulate cnt of rows

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Accumulate cnt of rows
 Login/Join
 
Member
posted
Hi!
I have a table that have a datetime column with a by... and I want another column with count of people..but while the datetime grows i want the other column to sum the cnt of the row before plus the new cnt of the row..
ie
datetime people <--cnt of people in that datetime
2009/12/19 3
2009/12/20 5 <---3 from the last row and 2 more from this row
2009/12/21 10 <---5 from the last row and 5 more from this row

Thanks in advance Big Grin

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


WebFOCUS 7.6, Windows
All output
 
Posts: 26 | Registered: December 14, 2009Report This Post
Platinum Member
posted Hide Post
Hi,

Is this something that you are looking for?
It basically append the count on the BY.

Best Regards,

Jimmy Pang

TABLE FILE EMPDATA
SUM
CNT.PIN AS 'PIN'
BY DIV
ON TABLE HOLD AS HLDCNT
END

DEFINE FILE HLDCNT
ASDF/D12.2 = ASDF + PIN;
END

TABLE FILE HLDCNT
PRINT DIV
ASDF
END


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
 
Posts: 117 | Location: Toronto, Ontario, Canada | Registered: February 29, 2008Report This Post
Silver Member
posted Hide Post
quote:

I have a table that have a datetime column with a by


Take a look at this..
  
TABLE FILE CAR
PRINT COUNTRY MODEL CAR SEATS 
AND COMPUTE T1/I5 = IF COUNTRY NE LAST COUNTRY THEN SEATS ELSE SEATS + T1 ;
BY COUNTRY
END
 
Posts: 36 | Location: Boston MA | Registered: October 12, 2006Report This Post
Virtuoso
posted Hide Post
Or simply:

TABLE FILE CAR
SUM SEATS 
AND COMPUTE ROLLING_SEAT_CNT/I9 = LAST ROLLING_SEAT_CNT + SEATS ;
BY COUNTRY
END


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Member
posted Hide Post
THANK YOU So MUCH !!!
that did the trick Big Grin
Good One


WebFOCUS 7.6, Windows
All output
 
Posts: 26 | Registered: December 14, 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] Accumulate cnt of rows

Copyright © 1996-2020 Information Builders