EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB14245: ‘Metric object is defined in terms of itself’ error occurs when trying to use a custom subtotal on the metric in a report in MicroStrategy Developer 9.4.x - 10.x.


Stefan Zepeda

Salesforce Solutions Architect • Strategy


This technical note documents an error that occurs when trying to execute a report which has a custom subtotal on a metric in MicroStrategy Developer 9.4.x - 10.x.

SYMPTOM:
The following error message appears when trying to execute a report which has a custom subtotal on a metric in Strategy Developer 9.4.x - 10.x:
 

ka02R000000kcQeQAI_0EM440000002FS1.jpeg


Error: The Metric object 'xxxx' is defined in terms of itself

 

STEPS TO REPRODUCE:
Follow the steps below to reproduce the issue in the Strategy Tutorial project. In this example, a subtotal is applied on the Revenue metric:
 

  1. Create a report with Region on the row and Revenue on the column.
  2. Add a grand total to report by selecting Data -> Grand Totals. Save and close the report.
  3. Create a subtotal which calculates (Total Revenue/ Number of Regions). The subtotal has the following definition:
    (Sum(Revenue) {@} / Count(Revenue) {@} )
  4. Save the custom subtotal as 'total/ count'.
  5. Edit Revenue and go to the 'Subtotals and Aggregation' tab and add the custom subtotal under 'Available subtotals for the metric'. Save and close the metric editor.
  6. Edit the report created in Step 2.
  7. In the report, go to Data -> Subtotals and select the 'total/count' subtotal to be displayed.
  8. Execute the report. The error described above occurs.

CAUSE:
This error occurs due to an incorrect definition of the custom subtotal used in the report.
 
ACTION:
In order to use the custom subtotal in the report, the user needs to correct the definition of the custom subtotal. For the above case, the user needs to change the custom subtotal definition to the following:
 
Sum(x) / Count(x)
Now the report returns the expected results, as shown below:
 

ka02R000000kcQeQAI_0EM440000002FS6.jpeg

 


Comment

0 comments

Details

Knowledge Article

Published:

April 25, 2017

Last Updated:

April 25, 2017