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

KB44249: How to create a RunningSum only in the subtotal field in MicroStrategy Developer 9.4.x and 10.x


Stefan Zepeda

Salesforce Solutions Architect • Strategy


This article describes a series of steps to setup report objects in which metrics and subtotals so only the subtotal field will contain the RunningSum and the regular metric values will be standard sum values.

This article describes a series of steps to setup report objects in which metrics and subtotals so only the subtotal field will contain the RunningSum and the regular metric values will be standard sum values.
 
1) Create Metric 1 which is the sum of the fact that is to be in the columns.
 

ka02R000000kcV0QAI_0EM440000002Cj2.png

 
2) Create Metric2 as the RunningSum of Metric1.  NOTE:  The sortby parameter for the RunningSum should be set to whichever attribute you want the report sorted by.
 

ka02R000000kcV0QAI_0EM440000002CjE.png

 
3) Create Metric3 as Metric1 + (Metric2 x 0)
 

ka02R000000kcV0QAI_0EM440000002Cj3.png

 
4) Create a new subtotal called "Max" which is defined as Max()
 

ka02R000000kcV0QAI_0EM440000002Cj5.png

 
5) On the Subtotals/Aggregation tab for Metric 3, set the Total subtotal function to be "Max" and select the check box for "Allow Smart Metric"
 

ka02R000000kcV0QAI_0EM440000002CjC.png

 
 
6) Create the desired report and place the 3 metrics on the report.  NOTE:  Only Metric3 is required on the grid as it is the final metric which will display the desired RunningSum subtotal.  The other two metrics simply need to be in the report objects window.
 
7) Within the report editor -> Data -> subtotals, select the Total subtotal
 

ka02R000000kcV0QAI_0EM440000002Cj4.png

 
8) Execute the report.
 
Below is an example using Year, Region, and Revenue to achieve the RunningSum for only the subtotal.
 

ka02R000000kcV0QAI_0EM440000002CjF.png

Comment

0 comments

Details

Knowledge Article

Published:

April 17, 2017

Last Updated:

April 17, 2017