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

KB19944: When removing an attribute from the grid, percentile metric values will display `--`, or null values in MicroStrategy Developer 9.x


Stefan Zepeda

Salesforce Solutions Architect • Strategy


When removing an attribute from the grid, percentile metric values will display `--`, or null values in MicroStrategy Developer 9.x

SYMPTOM:
A report that has two attributes and percentile metrics will show null values when one attribute is removed from grid and placed into Report Objects.
 

ka02R000000kcKOQAY_0EM440000002Ea6.jpeg

CAUSE:
Dynamic Aggregation is a function with OLAP Services which dictates the behavior of reports that are aggregated within the Intelligent Cube. Consider in the example above, when Month is removed, the percentile metrics must aggregate at the Quarter level. This action requires new SQL to be generated and results to be retrieved from the data warehouse.
 
However, when users remove an object from Grid View in Strategy Developer, new SQL is not generated. When reports are dynamically aggregated, values for most metrics are simply summed. However, as in the report above, the Strategy Engine is aware that summing a metric that calculates percentiles will produce erroneous results. Therefore, the Strategy Engine produces temporary null values for the percentile metrics when it is dynamically aggregated, which are shown as "--" on the report, as shown above.
 
Note:
The content in this Technical Note pertains specifically to percentile metrics causing nulls due to dynamic aggregation. In the case of some metrics, such as Average, Count, Mean and others, there is an additional resolution for the dynamic aggregation issue. This solution is presented in the following Strategy Knowledge Base document:
 
 

  • KB5200-072-0147 - Metrics display two dashes (--) when removing attributes from the report view in Strategy SQL Generation Engine 7i - 7.2.0 - 8.0.x

ACTION:
Instead of removing the attribute from just the grid, remove the attribute from the report. This will cause the report to re-execute. Values will then aggregate at the level of the attribute on the report.
 
Otherwise, create a user-defined subtotal, then when choosing how the metric will dynamically aggregate, click on 'More' and choose the subtotal previously created. Here are steps on how to create and apply a user-defined subtotal:
 

  • Create the user-defined percentile subtotal in the Subtotal folder in the Project Objects folder.
ka02R000000kcKOQAY_0EM440000002Ea2.jpeg
  • Apply the custom subtotal to the metric by choosing 'More…' in the dynamic aggregation function.
ka02R000000kcKOQAY_0EM440000002Ea5.jpeg
  • Choose the subtotal created in step 1.
ka02R000000kcKOQAY_0EM440000002Ea8.jpeg
  • Save and close the metric. When the Month attribute is removed from the report, the metrics should calculate the correct percentile instead of showing a null value:
ka02R000000kcKOQAY_0EM440000002EaE.jpeg

Comment

0 comments

Details

Knowledge Article

Published:

May 11, 2017

Last Updated:

May 11, 2017