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
Multi-Verb?
 Login/Join
 
Silver Member
posted
Hi all,

Is there a simple way to do this? It seems there should be, but I've never been able to figure it out...

I have a source table with the following info:

ITEM BRANCH BUYER DEMAND
DA123 01 018 20
DA123 02 016 50
DA123 03 015 30

I want the SUM of the DEMAND, but only want to show the BUYER for BRANCH 01.

Here's what seems like would be the solution:

TABLE FILE BRITEM
SUM
DEMAND
BY ITEM
WHERE ITEM EQ 'DA123';
PRINT
BUYER
BY ITEM
WHERE ITEM EQ 'DA123';
WHERE BRANCH EQ '01';
END

However, it looks like the WHERE statements cannot be separated out for each part of the multi-verb request. The WHERE statements will then apply to both parts.

I know I could separate out the requests and then do a join, but I was wondering if there is a simpler way?

Thanks so much!

Krysti


WF 767
 
Posts: 34 | Location: Chicago, IL | Registered: September 02, 2004Report This Post
Expert
posted Hide Post
Does this work for you:
TABLE FILE CAR
SUM SALES 
BY COUNTRY
WHERE COUNTRY EQ 'ITALY'
PRINT SALES
COMPUTE SALES_ITALY/I1=IF COUNTRY EQ 'ITALY' AND BODYTYPE EQ 'COUPE' THEN 1 ELSE 0; NOPRINT
BY COUNTRY 
WHERE TOTAL SALES_ITALY EQ 1
END  

Yours might be
TABLE FILE BRITEM
SUM
DEMAND
BY ITEM
WHERE ITEM EQ 'DA123';
PRINT
BUYER
COMPUTE BRANCH_SEL/I1=IF BRANCH EQ '01' AND ITEM EQ 'DA123' THEN 1 ELSE 0; NOPRINT
BY ITEM
WHERE TOTAL BRANCH_SEL EQ 1
END
  


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Silver Member
posted Hide Post
PERFECT!!

Thank you, thank you, thank you!!

Krysti


WF 767
 
Posts: 34 | Location: Chicago, IL | Registered: September 02, 2004Report This Post
Expert
posted Hide Post
You are most welcome.

As an aside, could you update your profile signature with your product and release information so that we can help you better?

Thanks.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Virtuoso
posted Hide Post
Slightly simpler
TABLE FILE BRITEM
SUM
DEMAND
BY ITEM
PRINT
BUYER
BY ITEM
WHERE ITEM EQ 'DA123';
WHERE TOTAL BRANCH EQ '01';
END


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Silver Member
posted Hide Post
Excellent.

So, the key is the WHERE TOTAL; that's what I was missing.

Thank you both for your help!

Krysti


WF 767
 
Posts: 34 | Location: Chicago, IL | Registered: September 02, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders