Prompt-in-prompt (Nested prompt) feature in a FreeForm SQL Report
In some business scenarios, it is required to implement prompt-in-prompt (nested prompt) feature to use the answer of one prompt to qualify on the elements of another prompt in Freefrom SQL reports in MicroStrategy Developer 9.4.x-10.x. The following procedure describes how to achieve prompt-in-prompt in a Freeform SQL report in MicroStrategy Tutorial project:
- Create a new filter, select Add an Attribute qualification and choose the highest level attribute Country. Make sure to Qualify On: Elements. Click Prompt as the image shown below. Accept all the default values without any changes in the popped up window after clicking on "Prompt" as shown below. Save the filter as "Country Filter".
- Click "Prompt", choose "Use a filter to reduce the number of elements" option and select Country Filter created in last step, as shown below. Save the filter as "Region Filter".
- Select Filter definition prompt -> Choose from an attribute element list as shown below.Choose attribute Call Center and use the Region Filter created in the previous step. Accept the other default values. Save the prompt as "Call Center Prompt".
- Create a FreeForm SQL Report and add this nested prompt into it.Type SQL statement and insert Call Center Prompt created in the previous step.
- Save and run the report. It will prompt for Country, Region and Call Center one by one in different pages. As images below.
Comments
Post a Comment