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

KB5892: How to create a metric that calculates the greatest metric value of three metrics in MicroStrategy Developer 9.x


Stefan Zepeda

Salesforce Solutions Architect • Strategy


How to create a metric that calculates the greatest metric value of three metrics in MicroStrategy Developer 9.x

The metric to calculate the greatest value out of the three metrics can be defined by performing the following steps:

  1. Create a new metric.
  2. Type the following custom expression in the metric editor:
    ApplySimple("CASE WHEN #0 > #1 AND #0 >#2 THEN #0 WHEN #2>#1 AND #2>#0 THEN #2 ELSE #1 END", , , )
     
    Here Metric 1, Metric 2 and Metric 3 are the names of different metrics that are being compared. The metric expression is illustrated below.
     
ka02R000000kYF1QAM_0EM440000002GDQ.gif

Comment

0 comments

Details

Knowledge Article

Published:

June 9, 2017

Last Updated:

June 9, 2017