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.
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, 2004
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