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

KB12482: How to enable smart totals in freeform SQL reports in MicroStrategy Developer 9.x


Stefan Zepeda

Salesforce Solutions Architect • Strategy


How to enable smart totals in freeform SQL reports in MicroStrategy Developer 9.x

SYMPTOM:
In the freeform SQL report below, the user has the metrics Cost, Revenue, and cost/revenue. Without making the cost/revenue metric a smart metric, the total will be the grand total instead of weighted average, as shown in the image below:
 

ka02R000000kYQSQA2_0EM440000002Fg4.gif

 
With smart metric enabled for the cost/revenue metric, the total displays as shown below:
 

ka02R000000kYQSQA2_0EM440000002Fg8.gif

 
CAUSE:
The smart metric feature is for compound metrics, and therefore is irrelevant to freeform SQL reports. By design, freeform SQL reports cannot contain compound metrics.
 
WORKAROUND:
Delete the cost/revenue metric and create a derived metric that divides the Cost metric by the Revenue metric. Then, change the evaluation order.
 
To change the evaluation order, navigate to the Data menu -> Report Data Options -> Calculations -> Evaluation Order. Change the order so the derived metric can be calculated first, as shown below:
 

ka02R000000kYQSQA2_0EM440000002Fg7.gif

 


Comment

0 comments

Details

Knowledge Article

Published:

June 8, 2017

Last Updated:

June 8, 2017