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.
Hi, I have problem in summing up the values. can anyone help me out. I have the database records which look like this. CUSP_N : 033234567 Account#1 SRC_SYS_C TOT_SHQ_C MONTH1 MONTH2 FXDINC 1000 500 500 MM 1000 500 500 CORPACTFUL 1000 500 500 PBACK 1000 500 0 CUSP_N : 033234567 Account#2 SRC_SYS_C TOT_SHQ_C MONTH1 MONTH2 CORPACTFUL 500 500 500 PPBACK 1000 100 0
Problem Specification. 1. Sum all the TOT_SHQ_C v alues of two accounts. EXCLUDING PPBACK Records 2. Sum all the MONTH1 and MONTH2 Values. Including PPBACK Records. Logic Implemented.
1. Redefine the TOT_SHQ_C column. and replace all the PPBACK's TOT_SHQ_C as MISSING.
2. SUM all TOT_SHQ_C and MONTH1,MONTH2 values group by CUSP_N
Current Modification needs to be done -------------------------------------
1. Select one record from each account( It can be either FXDINC, MM, CORPACTFUL from Account#1) and calculate the TOT_SHR_Q by summing up those 2 records. Excluding the PPBACK Record. 2. Sum all the MONTH1 and MONTH2 Values. Including PPBACK Records.
Final Output Should be something like this Final Output:
You only need to make an adjustment to the DEFINE you've set up for the TOT_SHR_Q. This could do it for you:
TOT_SHR_Q/D19.2 MISSING ON NEEDS SOME = IF (SRC_SYS_C EQ '&SELVALUE') THEN TOT_SHR_Q ELSE MISSING;
In essence what you're saying is that if the SRC_SYS_C is PPBACK or any value other than that selected (contained in &SELVALUE) then you don't want to include that amount. ONLY if the SRC_SYS_C is equal to the selected value, do you want to sum it's amount). The PPBACK value will be screened out by the ELSE MISSING portion of the IF.
BTW...you don't need to put this in a DEFINE. It can be a COMPUTEd field.
Try this, if it doesn't matter WHICH of the records you choose, so long as it isn't PAYBACK. DEFINE FILE UNION1 CTR/I1 WITH SRC_SYS_C = IF ACCOUNT EQ LAST ACCOUNT AND SRC_SYS_C EQ 'PPBACK' THEN CTR ELSE IF ACCOUNT EQ LAST ACCOUNT THEN CTR + 1 ELSE IF SRC_SYS_C EQ 'PPBACK' THEN 0 ELSE 1; QTY/D19.2 = IF CTR EQ 1 THEN TOT_SHR_Q ELSE 0; END TABLE FILE UNION1 SUM QTY TOT_SHR_Q MONTH1 MONTH2 BY CUSP_N END
Posts: 60 | Location: 2 penn | Registered: May 22, 2003