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
OLAP and COMPUTE
 Login/Join
 
Silver Member
posted
Hi,

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


Madhu

WF Version 7.1 Windows, SQL Server Database
 
Posts: 36 | Location: Mississauga, Ontario | Registered: April 12, 2007Report This Post
Expert
posted Hide Post
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


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Guru
posted Hide Post
Which compute is not working? I would guess PCT2.
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, 2003Report This Post
Silver Member
posted Hide Post
Hi Tom, Kp

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;


The above code would give me row total.


Madhu

WF Version 7.1 Windows, SQL Server Database
 
Posts: 36 | Location: Mississauga, Ontario | Registered: April 12, 2007Report This Post
Member
posted Hide Post
I was told that this issue has been fixed in 7.6.5. I have not tried the fix yet, but hope this is fixed.


Version 764 on iSeries, V5r4, Client running on Tomcat 5.xx
 
Posts: 7 | Registered: January 15, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders