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     how to count the number

Read-Only Read-Only Topic
Go
Search
Notify
Tools
how to count the number
 Login/Join
 
Gold member
posted
Hi;

In my report, i need to get the top 6 frequenctly happened event based on the report number submitted? How can i do that?

TABLE FILE WEBFOCUSASAPVIEW2
COUNT REPORTID AS '# of report'
BY EVENTDESC AS 'Event'
HEADING
"Event Table"
FOOTING
""

Thanks
------------------------------------------------
Server: 7.6.4 on Window 2003
Client: 7.1.1 on HP-UX WebLogic 8.1


====================
Production: WebFOCUS 7.1.1 on Window 2003
WebFOCUS 7.1.1 Client on HP-UX on WebLOGIC 8.1 sp4
Dev: WebFOCUS 7.6.4 on Window 2003
WebFOCUS 7.1.1 Client on HP-UX on WebLogic 8.1 sp4
 
Posts: 52 | Registered: June 28, 2005Report This Post
Expert
posted Hide Post
You might need to preprocess your data counting the event occurences and then use BY HIGHEST n [count_fieldname].

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
How about this,
Create a new field(Define/Compute) and fill it with '1' then do SUM by EVENTDESC. That should add up all the '1' and gave you a count on how many time an event occured.

DEFINE FILE WEBFOCUSASAPVIEW2
  STRTEMPFLAG/I5 = 1;
END

TABLE FILE WEBFOCUSASAPVIEW2
  SUM
    STRTEMPFLAG
  BY EVENTDESC
END


hope that helps, cheers~


7.1.3 on XP into HTML, Excel, PDF
 
Posts: 27 | Registered: April 15, 2008Report This Post
Expert
posted Hide Post
Exactly, as in preprocess your data counting the event occurences.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Virtuoso
posted Hide Post
Search for the functionality of "RANKED" here on focalpoint and you will find many examples on how this can be done.




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
Member
posted Hide Post
Maria,
Try this:

TABLE FILE WEBFOCUSASAPVIEW2
COUNT REPORTID AS '# of report'
BY EVENTDESC AS 'Event'

RANKED AS 'RANK' BY TOTAL HIGHEST 6 EVENTDESC NOPRINT

HEADING
"Event Table"
FOOTING
""


7.6.4
windows
Excel2k and HTML.
 
Posts: 10 | Registered: April 02, 2008Report This Post
Platinum Member
posted Hide Post
Maria,

Yuuta's comment is well taken.

If you base your frequency analysis on the sum of a DEFINED field, then you can use IF... statements inside DEFINE/END and COMPUTEs inside the TABLE_FILE/END to set the summed field to either '0' or '1'./ This lets you analyze extremely complex relationships between any two or more columns of data.

Counting the settings of hidden 'flag' fields is a classic programming technique.

Chris


WIN/2K running WF 7.6.4
Development via DevStudio 7.6.4, MRE, TextEditor.
Data is Oracle, MS-SQL.
 
Posts: 154 | Location: NY | Registered: October 27, 2005Report This Post
Virtuoso
posted Hide Post
Maria,
Could this help you?
  
TABLE FILE WEBFOCUSASAPVIEW2
SUM CNT.REPORTID AS '# of report'
BY HIGHEST 6 TOTAL CNT.REPORTID NOPRINT
BY EVENTDESC AS 'Event'


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     how to count the number

Copyright © 1996-2020 Information Builders