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.
Have a report with Unit_No and transactions as displayed values in the body of the report. At end of report, would like to show a total count of transactions for the report period and count of the number of unique units the transactions were assopciated with. For example,
So, there were 5 total transactions (which I have determined how to get the counts for) and 3 unique units that the transactions are associated with (this is the part I am struggling with).
Any ideas out there?
Thanks!This message has been edited. Last edited by: Kerry,
7.6.4 XP SP3 EXL2K, HTML, PDF
Posts: 26 | Location: Ohio | Registered: April 13, 2009
TABLE FILE CAR
SUM
COMPUTE S_COUNT/D4 = IF SEATS EQ LAST SEATS THEN S_COUNT ELSE S_COUNT + 1; NOPRINT
SALES
BY SEATS
BY COUNTRY
BY MODEL
ON TABLE SUBFOOT
"TOTAL UNIQUE SEATS: <S_COUNT"
END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
I can't use the sum command in place of print and incorporate the cnt. statements there because sum returns a single (last) row (- they're all alpha fields)
So, I thought I could create two hold files - one with details, other with count from same data source - and join them such that cnt fields are appended to each row of the details (DETLS) file.
Here are the two hold files I created for the this approach. Can you create 'open' joins between data sources to accomplish what I want it to do? Kinda like MS Access will apply all data from one source to the other if no specific join is provided...
TABLE FILE SQLOUT PRINT EMPLOYEE_NO EMPLOYEE_NAME UNIT_NO VIN REPLACEMENT_VEH MODEL_YEAR MODEL_DESC TRX_CODE COMMENTS UNIT_CNT TRX_CNT ON TABLE HOLD AS DETLS END
TABLE FILE DETLS SUM CNT.DST.UNIT_NO AS 'TOTAL_UNITS_CNT' CNT.TRX_CODE AS 'TOTAL_TRAX_CNT' ON TABLE HOLD AS RPTTOTS FORMAT FOCUS
Thanks!
7.6.4 XP SP3 EXL2K, HTML, PDF
Posts: 26 | Location: Ohio | Registered: April 13, 2009
TABLE FILE CAR
SUM
COMPUTE S_COUNT/D4 = IF SEATS EQ LAST SEATS THEN S_COUNT ELSE S_COUNT + 1; NOPRINT
BY SEATS
PRINT
SALES
BY SEATS
BY COUNTRY
BY MODEL
ON TABLE SUBFOOT
"TOTAL UNIQUE SEATS: <S_COUNT"
END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server