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

KB4222: How to generate a report with rolling months using dynamic dates in MicroStrategy Developer


Stefan Zepeda

Salesforce Solutions Architect • Strategy


How to generate a report with rolling months using dynamic dates in MicroStrategy Developer

To obtain a report for sales in the last two years, use the Date Editor when creating the filter in Strategy Developer and execute the following steps:

  • Create a new filter and select the 'Add an Attribute qualification' option.
     
ka02R000000kYFGQA2_0EM440000002GK9.gif
  • Select the attribute 'Date' and choose 'ID' from the Qualify on menu. Click on the calendar icon to the right of the date value in the Operator section.
     
ka02R000000kYFGQA2_0EM440000002GKB.gif
  • The Date Editor window will appear. Select the Dynamic date and Today radio buttons. Choose the appropriate offset (in this example Minus 2 years Plus 1 month).
     
ka02R000000kYFGQA2_0EM440000002GKE.gif
  • Click on 'OK' and repeat Steps 1 through 3 until the New Filter - Filter Editor window displays the rolling metrics as shown below. Double-click on the AND operator to change it to 'OR'.
     
ka02R000000kYFGQA2_0EM440000002GKA.gif
  • Create a report using the following template:
     
ka02R000000kYFGQA2_0EM440000002GK0.gif
  • This report filters on specific dates. Since the filter was today's date minus 2 years plus one month, the result is (for example) August 10, 1998, if today's date is July 19, 2000. To receive a full month's data, the metric must be made absolute. To do so, right-click on the metric from the Report Editor and select 'Edit'.
  • In the Metric Editor window under the Level (Dimensionality) section, select 'Report Level' under 'Target' and 'absolute' under 'Filtering'.
     
ka02R000000kYFGQA2_0EM440000002GKG.gif
  • When run, the resulting report appears as shown below:
     
ka02R000000kYFGQA2_0EM440000002GKD.gif

Comment

0 comments

Details

Knowledge Article

Published:

June 9, 2017

Last Updated:

June 9, 2017