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.
Stephen, Here is a possibility (using the CAR file):
-* File Stephen.fex
TABLE FILE CAR
SUM RCOST DCOST
BY COUNTRY
BY SEATS
ON TABLE SAVE AS STEPHEN
END
DEFINE FILE STEPHEN
TYP/A5=IF NUM EQ 1 THEN 'RCOST' ELSE 'DCOST';
END
TABLE FILE STEPHEN
SUM COST
BY COUNTRY
ACROSS NUM NOPRINT
ACROSS SEATS
ACROSS TYP AS ''
END
SET ASNAMES=ON
DEFINE FILE XXX
AMCODE/A3='USD';
END
TABLE FILE XXX
SUM USD AS 'AMOUNTX'
BY CALENDAR_YYYY
BY BUSINESS_NAME
BY AMCODE
ON TABLE HOLD AS HOLDUSD
END
DEFINE FILE XXX
AMCODE/A3='LCL';
END
TABLE FILE XXX
SUM LCL AS 'AMOUNTX'
BY CALENDAR_YYYY
BY BUSINESS_NAME
BY AMCODE
ON TABLE HOLD AS HOLDLCL
END
-RUN
TABLE FILE HOLDUSD
PRINT *
ON TABLE HOLD AS HOLDTOTAL
MORE
FILE HOLDLCL
END
-RUN
TABLE FILE HOLDTOTAL
SUM AMOUNTX AS ''
BY BUSINESS_NAME
ACROSS CALENDAR_YYYY
ACROSS HIGHEST AMCODE NOPRINT
END
I supposed the USD and LCL have the same size.
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, 2006
Frank - the one drawback to this solution that i couldnt get around is that the user wants the values formatted differently between the two columns (ie LCL with 2 decimals, USD with 0). When i put them both into the same field, i couldnt split the formatting.