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

KB483242: Smart metric defined on a Derived Element is calculated incorrectly when the NDE is a calculation.


Community Admin

• Strategy


Some smart metrics defined on the element group, also known as New Derived Element, are calculated incorrectly when the NDE is a calculation.

 

Symptoms

  • There are derived elements on the template and calculations are created based on the derived elements
  • Smart Metrics or Subtotals are not calculated correctly

Glossary

  • Smart metric
  • Element groups , aka New Derived Element, is a type of derived attribute that created by grouping certain elements in an attribute and treat it as one element.Calculations between elements can be created as elements.

Steps to reproduce


1. In Strategy Developer, create a normal report with Year, Category and Revenue
2. Save the report and log into the Web to create a dashboard using this report as the dataset.
3. Select elements “Books” and “Electronics”, right-click and select Group; give a name to the new group, e.g., “B+E”.

ka04W00000148F1QAI_0EM2R000000lnFG.jpeg

4. Select the new group and Movies, right-click and select Calculation, and choose “B+E/Movies”; give a name to the new calculation, e.g., “B+E/Movies”.

ka04W00000148F1QAI_0EM2R000000lnFL.jpeg

5. Create a Smart Metric based on Revenue.

ka04W00000148F1QAI_0EM2R000000lnFQ.jpeg

Make sure in the “Metric Option”, select “Manual” and un-check both.

ka04W00000148F1QAI_0EM2R000000lnFV.jpeg

6. As shown in the grid, the element “B+E/Movie” has no value for this Smart Metric. 

ka04W00000148F1QAI_0EM2R000000lnFa.jpeg

Cause 


This is a known defect before Strategy 10.9. For the group element "B+E", we have two hidden leaf elements Book and Electrics. Before the fix, smart metrics returns "null" since the engine skips the calculations of the undisplayed leaf elements Book and Electrics which gives null value for "B+E". With the fix, we will do the calculations no matter the leaf elements are displayed or not. 

Solution


To solve this issue, please upgrade to Strategy 10.9 or above. We recommend the latest version.
If you are upgrading to Strategy 11.0 or above, to pick up the fix, enable project level setting "Data Engine Version" to 11. This property can only be enabled through Workstation. For more details on enabling the setting, refer to Change Data Engine Version.
If you are upgrading to Strategy 10.9 / 10.10 / 10.11: To pick up the fix, enable the Feature Flag "Defect fixes that may impact Data, SQL, MDX, CSI" within the Web Preferences -> Project Defaults.  For more details on enabling Feature Flags refer to What are the Feature Flag options and what do they accomplish in MicroStrategy Web 10.8 and up. Starting Strategy 11.0, this Feature Flag is removed and replaced with project level setting called "Data Engine Version".
After the fix, the Smart Metric will be calculated for the derived element.

ka04W00000148F1QAI_0EM2R000000lnFz.jpeg

Strategy Internal Reference number for this technical note is  KB483242 and DE67539.


Comment

0 comments

Details

Knowledge Article

Published:

May 1, 2019

Last Updated:

June 27, 2022