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     Summing of column values.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Summing of column values.
 Login/Join
 
<Bhavani>
posted
Hi,
I have do two different summing of the values for a single ROW.

For ex. values in database.

CUSP_N TOT MONTH1 MONTH2 MONTH3 SRC_SYC_C
XYZ123 100 10 10 10 MM
XYZ123 200 0 10 0 PPBACK

OUTPUT in Report should be excluding the summing of TOT Value for 'PPBACK'.
But including summing for MONTH1,MONTH2,MONTH3.

Sample Output
-------------
CUSP_N TOT MONTH1 MONTH2 MONTH3 SRC_SYC_C
XYZ123 100 10 20 10 MM

So i did this....

TABLE FILE UNION1
SUM
TOT
WHERE SRC_SYS_C NE 'PPBACK'
BY
CUSP_N
ON TABLE HOLD AS UNION3
END

TABLE FILE UNION1
SUM
MONTH1
MONTH2
MONTH3
BY
CUSP_N
ON TABLE HOLD AS UNION4
END

JOIN FILE UNION3 AT CUSP_N TO ALL
FILE UNION4 AT CUSP_N AS J1

TABLE FILE UNION4
PRINT
TOT
MONTH1
MONTH2
MONTH3
END

Will This Work Fine Or There is any other way to Print this values.
 
Report This Post
Expert
posted Hide Post
how about just re-defining tot
DEFINE FILE UNION1
TOT2/I8S MISSING ON = IF CUSP_N EQ 'PPBACK' THEN MISSING ELSE TOT;
END
and then
SUM TOT2 AS TOT MONTH1 MONTH2 MONTH3 or whatver
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
<Bhavani>
posted
Thanks for the help. Logic working fine.
 
Report 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     Summing of column values.

Copyright © 1996-2020 Information Builders