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 dont seem to get COMPUTE work with OLAP Filters.Any ideas? Below is the code
Thank You
OLAP DIMENSIONS -* DIMENSIONS FILE CAR CAR: CAR; MODEL: MODEL; END TABLE FILE CAR SUM SALES NOPRINT RCOST NOPRINT COMPUTE PCT1/D5.2 = RCOST / SALES; NOPRINT BY BODYTYPE SUM SALES RCOST COMPUTE PCT2/D5.2 = RCOST / SALES; BY BODYTYPE ACROSS COUNTRY COMPUTE TOTAL/I6 = C1; COMPUTE TOTAL/I6 = C2; COMPUTE TOTAL/D5.2 = C3; HEADING "REPORT" ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE SET ONLINE-FMT HTML ON TABLE SET HTMLCSS ON ON TABLE SET AUTODRILL ON ON TABLE SET OLAPPANE TOP END
OLAP DIMENSIONS -* DIMENSIONS FILE CAR CAR: CAR; MODEL: MODEL; END DEFINE FILE CAR DUMMY/A1 = ' '; END
TABLE FILE CAR SUM SALES NOPRINT RCOST NOPRINT COMPUTE PCT1/D5.2 = RCOST / SALES; NOPRINT BY DUMMY NOPRINT
BY BODYTYPE SUM SALES RCOST COMPUTE PCT2/D5.2 = RCOST / SALES; BY DUMMY NOPRINT
BY BODYTYPE ACROSS COUNTRY ON DUMMY RECOMPUTE AS 'Total '
-*COMPUTE TOTAL/I6 = C1; -*COMPUTE TOTAL/I6 = C2; -*COMPUTE TOTAL/D5.2 = C3; HEADING "REPORT" ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE SET ONLINE-FMT HTML ON TABLE SET HTMLCSS ON ON TABLE SET AUTODRILL ON ON TABLE SET OLAPPANE TOP END
SUM SALES NOPRINT RCOST NOPRINT COMPUTE PCT1/D5.2 = RCOST / SALES; NOPRINT
BY BODYTYPE
SUM SALES RCOST
COMPUTE PCT2/D5.2 = RCOST / SALES;
BY BODYTYPE
ACROSS COUNTRY
PCT2 will use the first SALES and RCOST in the code for the calculation. If you actually want it to use the second ones use the 'Cn' column notation to refer to the second occurences of the fields.
ttfn, kp
Access to most releases from R52x, on multiple platforms.
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003
Sorry I was caught up on some thing else. What I want is row total. The code works perfectly if I remove the olap. The part of the code that doesn't seem to work with olap is COMPUTE TOTAL/I6 = C1; COMPUTE TOTAL/I6 = C2; COMPUTE TOTAL/D5.2 = C3;