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

KB47386: Simple derived metric displays are zero if any component values are zero in MicroStrategy Visual Insights 9.x - 10.x


Stefan Zepeda

Salesforce Solutions Architect • Strategy


This issue has been classified as working as designed by MicroStrategy. The impact is limited to the MicroStrategy Web 9.x - 10.x product when data value for derived metric component is a warehouse null. A solution/code fix for this issue has been addressed in this technote.

SYMPTOM:  
A simple subtraction derived metric displays as null, rather than the expected calculation value, when any component metric value is set as a null. If either component has a true value, the issue does not occur.
 
STEPS TO REPRODUCE:

  • Change tutorial data to have zero as a value for Cost and/or Profit
  • Create a report with Year, Category, Cost, and Profit
  • Create a Visual Insight document based off of report
  • Create a derived metric:

     
ka04W000001IwUyQAK_0EM440000002CKC.png
  • Value displays as null       
     
ka04W000001IwUyQAK_0EM440000002CKB.png

 
 
CAUSE:  
This is working as designed. The engine is unable to determine that a warehouse null should be calculated as a value of zero. Therefore, any calculation with a warehouse null will result in a null value calculation.
 
ACTION: 
Edit the metric with the warehouse null and add "NulltoZero" to the formula:
 

ka04W000001IwUyQAK_0EM440000002CK9.png

 
TO LEARN MORE:
Related technotes:
KB46866: Derived metric displays null in dynamic text targeted by slice selector with derived element as source in MicroStrategy Analytics Enterprise Web and Developer
KB37937: Analytical Engine returns warehouse nulls when subtracting two timestamps in a derived metric in MicroStrategy Developer 9.x
  
 
 


Comment

0 comments

Details

Knowledge Article

Published:

May 8, 2017

Last Updated:

May 8, 2017