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] Division of record count

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Division of record count
 Login/Join
 
Member
posted
I'm trying to create the following compute:

(( CNT.IsCertified + CNT.NOT_CERTIFIED) / ( CNT.ROSTERID - CNT.IsReleased)) * 100

Even though the counts of the fields are greater than 0, I always get a 0 back. I think it has something to do with the field type, but not sure how to fix it. Tried changing the IsCertified, NOT_CERTIFIED, IsReleased to Decimal, but it didn't help.

Thanks

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8.0.7
Windows, All Outputs
 
Posts: 18 | Registered: November 25, 2013Report This Post
Gold member
posted Hide Post
Hi AmiSol,
check if following code helps, else if you could provide some sample code using car file

TABLE FILE CAR
SUM
COMPUTE PCT/D10.2%=(CNT.CAR +CNT.COUNTRY) / (CNT.MODEL-CNT.CAR) * 100;
BY COUNTRY
END


WF 8.1.04,Infoassist,Oracle, Excel, PDF,HTML.
 
Posts: 82 | Registered: January 06, 2014Report This Post
Virtuoso
posted Hide Post
Ami,

What is the format of your result field?


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
Expert
posted Hide Post
CNT. is going to give you I5.
look at each variable's content separately, and you'll be able to figure out why the formula is giving you an undesired results. do the basic research.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Member
posted Hide Post
susannah-I'm new to WebFocus - is there a way to convert the data type of a formula from I5 to decimal from the expression editor pane?


WebFOCUS 8.0.7
Windows, All Outputs
 
Posts: 18 | Registered: November 25, 2013Report This Post
Expert
posted Hide Post
i have no idea what an expression editor pane is, but sure. easy. just a define, as in jvb's example. but first you have to do your research, what do these 4 fields actually contain? print out each of them and just look.
CNT.IsCertified
CNT.NOT_CERTIFIED
CNT.ROSTERID
CNT.IsReleased




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Member
posted Hide Post
ok, I figured it out - I had to remove the cnt. from the fields as they were define fields and the aggregation takes place on the report (sum).


WebFOCUS 8.0.7
Windows, All Outputs
 
Posts: 18 | Registered: November 25, 2013Report 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] Division of record count

Copyright © 1996-2020 Information Builders