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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Decode Function
 Login/Join
 
<rstull>
posted
I am working on a report in which the data I am reporting against contains parent/child relationships. Each child is tied to its parent through a numerical code. Each child also has its own numerical code. I am trying to achieve a report that will show sales information for all of the children of a particular parent. I have set up a decode similar to below:

COMPUTE Child/A20 = DECODE Parent (111111 'GROUPNAME1' 222222 'GROUPNAME2' 33333 'Groupname3');
AS 'Child Group'


The problem I am encountering is that each parent may have several children, so there is a separate entry for each child of a parent. Is there a way to summarize all of the children of a parent to create one entry per parent code, while totaling and displaying the sales figures for the entire group? For example

Child Group Total Sales
GroupName1 $500,000
GroupName2 $600,000
GroupName3 $10, 000

Thanks!

Rachel
 
Report This Post
Virtuoso
posted Hide Post
Rachel,

Have you tried using a define for the child group rather than a compute? Then sum by the group.

DEFINE FILE XYZ
CHILD/A20 = DECODE.....
END
TABLE FILE XYZ
SUM SALES BY CHILD
END
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Platinum Member
posted Hide Post
This type of report is handled in the
Developer Studio option in Report Painter called
the FML (financila modeling language) where lots
of parent/child relations occur (account parent to child accounts in GL) .
See the Documentation on how to use this feature.
 
Posts: 226 | Registered: June 08, 2003Report This Post
<rstull>
posted
Thank you both for the advice! I'll be working on it this morning.
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders