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

KB225563: How to draw a vertical line in graph to highlight specific day in MicroStrategy 9.x and 10.x?


Community Admin

• Strategy


Article describes the steps to highlight a specific day, today, by adding a vertical line in a graph

This Technical Note describes the steps to highlight a specific day, today, by adding a vertical line in a graph in Strategy 9.x and 10.x
 
Assume a sample line graph is being used, as below; there is a Day attribute on the X-axis.
 

ka04W000000OfUkQAK_0EM440000002HFh.jpeg

To highlight a report execution day, today, follow the steps below:

  • Define a Metric to get the date from the fact table at report level.
ka04W000000OfUkQAK_0EM440000002HFZ.jpeg
  • Date(Max<FactID=Cost, UseLookupForAttributes=False>(Day)) {~+}
    Date function is added to truncate time part.
     
  • Define a Metric to return if Metric created step 1 is equal to execution date.
ka04W000000OfUkQAK_0EM440000002HFX.jpeg
  • IF((DateMetric = Date(CurrentDate())), 1, 0)
    * DateMetric is the Metric defined in step 1.
    * Date and CurrentDate are Strategy functions.
    Enable smart metric in Subtotals/aggregation tab. 
  • In the report in the above example, add the Metric created in step 2.
    When report is executed on January 22th, the result will be as below.
ka04W000000OfUkQAK_0EM440000002HFj.jpeg
  • Set the graph preference as below:
    ・Graph type - Combination: Dual Axis Bar Line
    ・For the Metric created in step 2, use bar graph and set the width to minimum
ka04W000000OfUkQAK_0EM440000002HFd.jpeg
  • The blue line (bar graph with minimum width) highlight the execution day.

 


Comment

0 comments

Details

Knowledge Article

Published:

April 10, 2017

Last Updated:

April 10, 2017