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] Counts by and across date fields

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Counts by and across date fields
 Login/Join
 
Member
posted
Hi everyone! I am trying to create a spread sheet that has dates horizontal (across) and vertical (by). I have two date fields (scheduled date and surgery date) that I am using. I want a rolling sum of all scheduled cases by the actual date. Has anyone ever attempted this or is there a feature that may work well for this? I do OK getting actual counts (counts on the actual days scheduled - see simple define code below) but the rolling part I am struggling with. Thanks for any help and let me know if I need to better clarify!

DEFINE FILE X
CNTBYDT/I10 = IF SCHDATE LE SURGDATE THEN 1 ELSE 0;
END
TABLE FILE X
SUM
CNTBYDT
ACROSS
SCHDATE
BY
SURGDATE
END

I basically want the result of this but to have the number rolling across (additive in a sense).

Thanks!

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


WebFocus 7.6.6 Win 2K
 
Posts: 29 | Registered: June 19, 2006Report This Post
Virtuoso
posted Hide Post
Split it into two steps:

the first will form a HOLD file with the case_count sorted BY actual_date and within that BY sched_date. That order facilitates computation of the cumulative case count.

the second will produce the cross-tabs report from the HOLD, as "sum cumulative_cases across sched_date by actual_date".

The 'cumulative cases count' field can be produced by either a Compute in the first TABLE, or a Define before the second TABLE.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 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] Counts by and across date fields

Copyright © 1996-2020 Information Builders