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

KB483186: Count metric is incorrectly calculated when it uses a component of another smart metric


Community Admin

• Strategy


In MicroStrategy 11.0 and earlier, a derived count metric is calculated incorrectly when it uses a component of another smart metric.

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

Symptoms

The count metric does not calculate correctly with a proper aggregation function. The Metric Guide is not being utilized by the new Data Engine Behavior.

Glossary

  • Count Function
  • Metric Guide
    A metric guide can be thought of as a table source for selecting a particular metric. If in a given example there are multiple tables that contain the metric, the metric guide allows the user to choose which table the metric should be selected from.
    The metric guide has the highest priority in the table selection. This means if the Data Engine logic dictates that the metric be selected from Table B and the Metric Guide has been set to Table A, Table A will be used to select the metric.
ka0PW0000001Jj0YAE_0EM2R000000gsI7.jpeg

Steps to Reproduce

1. Create two datasets - DS1 and DS2 with the following attributes and metrics:
DS1:

ka0PW0000001Jj0YAE_0EM2R000000gsIC.jpeg

 DS2:

ka0PW0000001Jj0YAE_0EM2R000000gsIH.jpeg

2. Create a dossier with DS1 and DS2.
 
3. Link the Month ID in both datasets.

ka0PW0000001Jj0YAE_0EM2R000000gsGp.jpeg
ka0PW0000001Jj0YAE_0EM2R000000gsGu.jpeg

4. Create a derived metric using the formula editor named M01 in DS2.
Expression:

Count([Month Id]@ID){~+}

Add Filter - F01: Month Id from DS2 in list {200501, 200604}
Note: Month ID is from DS2.

   

ka0PW0000001Jj0YAE_0EM2R000000gsH9.jpeg
ka0PW0000001Jj0YAE_0EM2R000000gsHJ.jpeg

5. Create another derived metric named M11.
Expression:

(M01*10000)/Sum<UseLookupForAttributes=False>([Tot Cost]){~+}

Note: Tot Cost is from DS1

ka0PW0000001Jj0YAE_0EM2R000000gsIR.jpeg

6. Add the derived metric M11 to a grid. The count is incorrect.

ka0PW0000001Jj0YAE_0EM2R000000gsHT.jpeg

Cause

This is a known defect in Strategy 11.0 and earlier. When two attributes are linked, a key attribute is chosen among these attributes. The dataset corresponding to this key attribute is chosen to get the attribute. Now, the metric used may not entirely belong to a given a dataset. Some (or all) of its components may lie in the other dataset in other tables. This causes computational problems.
The Metric Guide points to a specific table as directed by the user. The Engine uses a table depending on other factors (as mentioned above). As a result, the metric cannot be calculated since the desired table was not used.

Solution

To resolve this defect, upgrade to Strategy 2019 or above. In the new fix, the Metric Guide is used to determine the table from which the metric is selected. It will have the highest priority in table determination. 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 applied, user should see their metric calculated correctly.

ka0PW0000001Jj0YAE_0EM2R000000gsHi.jpeg

The Strategy Internal Reference Number for the issue discussed is KB483186 and DE123579.


Comment

0 comments

Details

Knowledge Article

Published:

April 17, 2019

Last Updated:

March 21, 2024