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

KB483239: Running Sum metrics with an Attribute Group illustrates incorrect values on a bar chart, but correct values on a grid.


Community Admin

• Strategy


Before MicroStrategy 11.0, a Derived Metric with Element Group Sort By is calculated incorrectly on a Bar Chart or other Visualizations, but it is calculated correctly on Grid Visualization.

Starting with the release of Strategy ONE (March 2024), dossiers are also known as dashboards.

Symptoms

  • Derived Metric with Element Group Sort By is calculated incorrectly on a Bar Chart or other Visualizations. Element Group is also on the Template. 
  • Derived Metric with Element Group Sort By is calculated correctly on Grid Visualization. 

Glossary

  • Element Group
  • Derived Metric

Steps to Reproduce


This case is built upon Tutorial project. 
1. Create a New Dossier. In DATASETS panel, Click “Existing Objects”. Choose project attribute “Category” and project Metric “Revenue”. 
2. Create a new Template with Category and Revenue. 
3. For Category, group two Attribute elements. Element Group “Category (Group)” is created. 

ka0PW0000001JXYYA2_0EM2R000000lL9O.jpeg

4. Create Derived Metric “RunningSum (Revenue)”. Use OLAP Function “RunningSum” as the Metric Function. 
Metric Formula: RunningSum<BreakBy={@auto}, SortBy=(@auto)>(Revenue) 

ka0PW0000001JXYYA2_0EM2R000000lL9E.jpeg

5. Put Category (Group), Revenue, and RunningSum (Revenue) on the Template. For Grid Visualization, RunningSum (Revenue) is calculated correctly, but it calculates incorrectly on the Bar Chart. 

ka0PW0000001JXYYA2_0EM2R000000lL99.jpeg

Cause

This is a known defect before Strategy 11.0. When the Element Group is on the Template, Derived Metric using Element Group as the OLAP Function Sort By, Derived Metric is calculated incorrectly for all visualizations other than Grid visualizations. This is because Engine did not process Element Group in the Metric Sort by and causes computational problems. 

Solution


To resolve this defect, upgrade to Strategy 2019 or above. In the new fix, Element Group is handled correctly in the Metric Sort by. As a result, the Metric is now computed correctly. 
When upgrading to Strategy 2019 or above, enable the project level setting Data Engine Version to 11. This property can only be enabled through Workstation. For more details on enabling the setting, see Change Data Engine Version .
After the fix is apply,  bar chart will be calculated correctly as below.

ka0PW0000001JXYYA2_0EM2R000000hVHp.jpeg

Strategy Internal Reference number for this technical note is KB483239 and DE102071.


Comment

0 comments

Details

Knowledge Article

Published:

May 1, 2019

Last Updated:

March 21, 2024