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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Measures and Dimensions in MAS files

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Measures and Dimensions in MAS files
 Login/Join
 
<kvn>
posted
I'm creating a MAS file off a
MSOLAP datasource with measures
and dimensions to be used in an
OLAP enabled report with drilldown
on the dimensions. A OLAP report
works alright coming off this
MAS file until I try to use a
DEFINE field in the MAS file.
This DEFINE field is calculating
a percentage. Once I drop that
DEFINEd field into the report and run it I get back an error message saying:
(FOC11207) ERROR IN THE QUERY:
(FOC11265) A DEFINE OR WHERE
TEST OSAT_PCT SHOULD NOT REFERENCE
MEASURE Q Osat<br />
Total Part of MAS file:
  FIELD=Q_OSAT_TOTAL, 
ALIAS='Q Osat Total', USAGE=D18.2, A
CTUAL=D8, TITLE='Q Osat Total', $
FIELD=Q_OSAT_COUNT, ALIAS='Q Osat 
Count', USAGE=D18.2, ACTUAL=D8, 
TITLE='Q Osat Count', $
DEFINE OSAT_PCT/D12.2 = 
(  Q_OSAT_COUNT / Q_OSAT_TOTAL )
*  100; TITLE='Osat %', $
$  DIMENSION:  Organization
FIELD=NATION_DISPLAY, ALIAS='Nation Display', USAGE=A13, ACTUAL=A13,
TITLE='Nation Display',   WITHIN='*[Organization]', $
FIELD=REGION_DISPLAY, 
ALIAS='Region Display', 
USAGE=A21, ACTUAL=A21
TITLE='Region Display',
WITHIN='NATION_DISPLAY', 
Report Code:
 TABLE FILE FACT_CUBE
SUM Q_OSAT_TOTAL<br />    
 Q_OSAT_COUNT  
OSAT_PCT<br />BY 
 NATION_DISPLAY
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<br />
ON TABLE SET OLAPPANE TOP
ENDSTYLE<br />END
The whole point of this is
that I'm trying to create a shared
calculated field within the MAS file
for other reports to use. This way
DEFINEs of calculated fields won't
have to be created or included into every report.

This message has been edited. Last edited by: <Mabel>,
 
Report This Post
Platinum Member
posted Hide Post
I don't know why you are getting this error message, but the Define when used in this way
will give you the wrong value. It is summing up the ratios. You need a COMPUTE to do this.

(In the next release the Master file will also store Computes.)
 
Posts: 226 | Registered: June 08, 2003Report This Post
<kvn>
posted
Hmm... but it's not
giving me the
wrong value.
I've also tried
going about it this
way in the
MAS file and I still
recieve the
same error message.
  
FIELDNAME=OSAT_PCT, 
ALIAS=OSAT_PCT, USAGE=D16.12, 
ACTUAL=D8, MISSING=ON,
TITLE='OSAT_PCT',    REFERENCE='((SUM.Q_OSAT_COUNT / SUM.Q_OSAT_TOTAL) * 100)', P
ROPERTY=CALCULATED MEASURE,  $
FIELDNAME=Q_OSAT_COUNT, 
ALIAS='Q Osat Count', 
USAGE=D18.2, ACTUAL=D8, 
MISSING=ON,
TITLE='Q Osat Count',
REFERENCE=SUM.Q_OSAT_COUNT, 
PROPERTY=MEASURE,  $
FIELDNAME=Q_OSAT_TOTAL, 
ALIAS='Q Osat Total', 
USAGE=D18.2, 
ACTUAL=D8, 
MISSING=ON,
TITLE='Q Osat Total',
REFERENCE=SUM.Q_OSAT_TOTAL, 
PROPERTY=MEASURE,
Do you mean a minor
release to 53 or the major release of 7?

This message has been edited. Last edited by: <Mabel>,
 
Report This Post
Platinum Member
posted Hide Post
Try this..

TABLE FILE FACT_CUBE
SUM Q_OSAT_TOTAL Q_OSAT_COUNT AND COMPUTE XOSAT_PCT=Q_OSAT_COUNT/Q_OSAT_TOTAL; AS 'OSAT %'
BY NATION_DISPLAY
...

You can't sum ratios unless you have one value in each row.

(Release 7.1.4 probably)
 
Posts: 226 | Registered: June 08, 2003Report This Post
<kvn>
posted
Having the COMPUTE in the report does work. I've already done that. It's trying to have the calc in the MAS file is what I'm after. This way multiple reports can reuse that calc without computing it each time.

Should I assume that a calc in a MAS file can not be done this way?
 
Report This Post
Platinum Member
posted Hide Post
When working with a Cube we don't have the opportunity to perform a Define ourselves on each record. So, the Compute, which is done after retrieval is always the appropriate method. However, if the calculation is known to the cube
then it would be in the MFD as ..
FIELD=name, PROPERTY=calculated measure, REFERENCE=expression ;
(at least in the 7.1.2 release, plus the new COMPUTE data type )
 
Posts: 226 | Registered: June 08, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Measures and Dimensions in MAS files

Copyright © 1996-2020 Information Builders