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

KB31668: How to create a prompt to limit the rolling date range selection based on a simple date prompt in MicroStrategy 9.x-10.x


Stefan Zepeda

Salesforce Solutions Architect • Strategy


User may have the requirement to limit the date range selection within a specified period based on a single date prompt.

User may have the requirement to limit the date range selection within a specified period based on a single date prompt. For example, a prompt can be created to provide the list of dates between a date selected in a date prompt and next 30 days. Steps to create such a prompt in Strategy Tutorial is given as follows.
 
    1.   Create a date prompt called Start which is a type of Value prompt
    

ka0PW0000002rWTYAY_0EM440000002EJI.jpeg

 
    2.   Create a filter using the following definition based on attribute qualification of Day. Save the filter, name it as 30 days
    

ka0PW0000002rWTYAY_0EM440000002EJE.jpeg

    
    
Sample Code/Error
  Day ID Between ApplySimple("#0",? Start) AND ApplySimple("#0",AddDays(? Start,30))    
 
    3.   Create a filter definition prompt -> Choose from an attribute element list. Choose the Day attribute in Tutorial project, select the second option to Use a filter to reduce the number of elements. Choose filter 30 Days. Save the prompt, name it as Elements of Day filtered by 30 days
    

ka0PW0000002rWTYAY_0EM440000002EJM.jpeg

    

ka0PW0000002rWTYAY_0EM440000002EJS.jpeg

 
    4.   Create a report, add prompt Elements of Day filtered by 30 days to report filter, Day attribute on template. Run the report, user will be first prompted to choose a start date, then the second prompt window returns Day attribute element that is within 30 days of the chosen start date. User can use Shift key to select a date range to display on the report. For example,
    

ka0PW0000002rWTYAY_0EM440000002EJG.jpeg

    

ka0PW0000002rWTYAY_0EM440000002EJ9.jpeg

    

ka0PW0000002rWTYAY_0EM440000002EJK.jpeg

 
 
 
31668


Comment

0 comments

Details

Knowledge Article

Published:

June 8, 2017

Last Updated:

July 31, 2024