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

KB46714: How to design conditional count metric in Dashboard in MicroStrategy Web?


Community Admin

• Strategy


In some business scenarios, it is required to design conditional count metric in Dashboard in Strategy Web 9.4.1.
 
The following steps demonstrate how to do that in Strategy Tutorial project:
 

  1. Create data source in Microsoft excel as shown below:
ka04W000000OfOmQAK_0EM4400000026C9.png

 
 

  • Import data into project and create dashboard. Save the dashboard.
  • Create new metric Average (Revenue) via Revenue>New Metric>Average as shown below:
ka04W000000OfOmQAK_0EM4400000026CH.png

 
 
 

  • Edit Average (Revenue) and change level to Region as shown below:
ka04W000000OfOmQAK_0EM4400000026CJ.png


 
 

  • Save the dashboard and create new metric M1 with case function via Revenue>New Metric>Enter Formula as shown below:
ka04W000000OfOmQAK_0EM4400000026CL.png

ka04W000000OfOmQAK_0EM4400000026CD.png

 
 

  • Create new metric Sum (M1) via M1> New Metric> Sum as shown below:
ka04W000000OfOmQAK_0EM4400000026CF.png


 
 

  • Edit Sum (M1) and change level to Region as shown below:
ka04W000000OfOmQAK_0EM4400000026CM.png


 

  • Create new metric M2 with case function as shown below:
ka04W000000OfOmQAK_0EM4400000026CB.png


 
 

  • Remove Category, M1, Sum (M1) from grid. M2 will return number of category which has revenue less than average for each region as shown below:
ka04W000000OfOmQAK_0EM4400000026CO.png

 Note:

  • If error "Invalid metric formula" pops up when designing M1, save the dashboard and try again.
  • Please create Sum (M1) and Average (Revenue) by choosing desired function from New Metric menu instead of directly entering formula if it is required to aggregate data from base level.

 
 


Comment

0 comments

Details

Knowledge Article

Published:

May 22, 2017

Last Updated:

May 22, 2017