About prompts

A prompt is a question the system presents to a user when a report is executed. How the user answers the question determines what data is displayed on the report when it is returned from your data source.  For an introduction to prompts, how prompts save the report designer time, and how prompts work with MicroStrategy security filters, see the MicroStrategy Basic Reporting Guide.

A report designer can include one or more prompts in any report. Prompts are an effective tool to:

Components of a prompt

The pieces that make up a prompt control how a prompt appears and how it functions. These components include the following:

Consider your users' needs and the purpose of the report and the objects on it when you decide on these options. If you plan to apply a schedule to a prompted report, the decisions you make about answer requirements and default answers will affect how the report is filtered when it is automatically executed on schedule. For a table showing how various combinations of these options affect how a scheduled report is filtered when executed, see the MicroStrategy Advanced Reporting Guide.

For details and examples of each of these components and how they work together, see the MicroStrategy Basic Reporting Guide. For steps to create a prompt, see the appropriate link under Related Topics listed at the end of this topic.

Stand-alone prompt vs. prompt as part of report or filter

A stand-alone prompt is a prompt that is created as an independent MicroStrategy object. A stand-alone prompt can then be used on many different reports, as well as on filters, metrics, and other objects, and can be used by other report designers. A stand-alone prompt gives report designers flexibility.

However, in MicroStrategy, prompts can also be created as an intrinsic part of a given report, at the same time the report itself is being created. Prompts created as part of a report are saved with the report's definition. Therefore, a prompt created as part of a report cannot be used on any other report.

Prompts can also be created as an intrinsic part of a filter, at the same time the filter itself is being created. Prompts created as part of a filter are saved with the filter's definition. Therefore, a prompt created as part of a filter cannot be used on any other filter.

No matter how a prompt is created, whether as stand-alone or as part of another object, each approach allows you to create most prompt types described in this online help. Both stand-alone prompts and prompts created as part of another object accomplish the same results: the user is presented with one or more questions to answer, and the answers determine the data used when calculating the results displayed on a report.

Comparing a prompt and a filter

A prompt is similar to a filter because a prompt determines the specific data to be displayed on a report. The difference is that you create a filter for a report to provide a single, specific definition for the report. A filtered report then displays the same set of data to every user who executes that report. In contrast, a prompt dynamically modifies the contents of a report based on the user's answers when the user executes the report. With prompts, users can determine the objects (attributes, attribute elements, metrics, and so on) that they want to be part of, or excluded from, the report query that is sent to the data source. Therefore, a prompt can be seen as a way for each user to create his filter for a given report. For example:

Related topics