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.
You just need to summarize, sorting by unique values. If you just sum an alpha field, you always get the last value.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Sorry, I am a brand new intern this is all new to me. I will update my sign to make things easier. I work for an insurance company and I have a report that goes something like this:
When I sum the TYPE field it will just give me in this case Single user which is the last record. I want it to diplays all of the records for this field that are used but only a single time for each with a count at the end (ex. Multi-User - 3 or Single-User - 2). Now there are about 20 possible result for the TYPE Field. Do I need to create a count for each possible result or is there and easier way to do this? I am using WEBFOCUS 7.1.4 and this particular report is going to be EXCEL Format.
Posts: 25 | Location: Texas | Registered: December 04, 2007
Okay here is the code: [code] SUM CNT.INCIDENT_ID AS 'INCIDENT_COUNT' ADDRESS CITY COUNTY_DESC AS 'COUNTY' BY TOTAL HIGHEST INCIDENT_ID NOPRINT BY LOCATION_CODE PRINT INC_TYPE AS 'Work Order Type' BY TOTAL HIGHEST INCIDENT_ID NOPRINT BY LOCATION_CODE [code]
Now everything is displaying like it is suppose to except (INC_TYPE)... Say that the CNT.INCIDENT_ID Field has a record of 48. The report will display the 48 INC_TYPE's, many of these results have the same INC_TYPE. I do not want to display all 48 INC_TYPES seperately. I want to compress the similiar records together with a count to represent the number of INC_TYPE's. Instead of having INC_TYPE 'multi-user' shown 15 different times I want to to show 'multi-user - 15'.
Posts: 25 | Location: Texas | Registered: December 04, 2007
SUM CNT.INCIDENT_ID AS 'INCIDENT_COUNT' ADDRESS CITY COUNTY_DESC AS 'COUNTY' BY TOTAL HIGHEST INCIDENT_ID NOPRINT BY LOCATION_CODE BY INC_TYPE NOPRINT PRINT INC_TYPE AS 'Work Order Type' BY TOTAL HIGHEST INCIDENT_ID NOPRINT BY LOCATION_CODE
use by filed in first verb like BY INC_TYPE NOPRINT
Env Prod:WebFOCUS 7702 ,Windows xp on 64, SQL Server 2008, IRF Tool Env 1 Local: DevStudio 7702 - MS Windows XP SP2 - Apache Tomcat 5.0.28 Output: HTML, Excel and PDF
Posts: 52 | Location: NJ,USA | Registered: May 26, 2004
You can not have more BYs in the first part of a multi-verb request than the last and the BYs in the first part of the request must be the same and in the same order as the corresponding BYs in the second part of the request.
For this request you do not even need a multi-verb request
DEFINE FILE CAR MODEL_CNT/I5=1; END TABLE FILE CAR SUM DEALER_COST COMPUTE CNT_MODEL/I5=MODEL_CNT; BY TOTAL HIGHEST CNT_MODEL NOPRINT BY COUNTRY BY CAR END