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

KB18023: How to create a metric that concatenates a string metric with an Integer metric in MicroStrategy Developer 10.x against SQL Server or Oracle


Stefan Zepeda

Salesforce Solutions Architect • Strategy


A user wants to create a metric value that concatenates a metric which contains integer values and a metric which contains strings values.

SYMPTOM:
A user wants to create a metric value that concatenates a metric which contains integer values and a metric which contains strings values, as shown in the image below.

ka02R000000kZwdQAE_0EM440000002EtG.jpeg

 
ACTION:
Follow the steps below to do this:

  • Create a new metric.
  • Add the following expression if using SQL Server.
ka02R000000kZwdQAE_0EM440000002EtC.jpeg
  • ApplySimple("str(#0) + #1", , )
  • Add the following expression if using Oracle.
ka02R000000kZwdQAE_0EM440000002Et9.jpeg
  • ApplySimple("CONCAT(to_char(#0, 999999) , #1)", , )
  • Validate the expression.
  • Save and close the metric definition.
  • Add the metric into the report and the concatenated metric should display as shown below:
ka02R000000kZwdQAE_0EM440000002Et7.jpeg

Comment

0 comments

Details

Knowledge Article

Published:

June 2, 2017

Last Updated:

June 2, 2017