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

KB10847: How are embedded Prompt Filters for attributes that do not have unique IDs created in MicroStrategy?


Community Admin

• Strategy


OVERVIEW:
It is common to use embedded filters within one another to prompt a User at the highest level and to select elements at the lowest level possible. This is discussed in Strategy Knowledge Base document, "KB5700-7XX-1212 - How to create N-Level deep nested prompts in Strategy Desktop."
However, in situations where some attributes that are not composed of a unique combination of values that identify them, the directions offered in KB5700-7XX-1212 may not work. This is because only the previous filter qualification will be used to filter the current filter prompt elements available for selection. For example, if there are four levels of embedded filter prompts, then for the third prompt, its elements will only be filtered by the previous filter's prompt answers.
In this case, the procedure in this document may be followed so that each filter answer for subsequent prompts will be used to filter the current prompt selection.
 
SCENARIO:
In the following example, consider that a user wishes to set up embedded filter prompts to select one specific customer. Each number represents a different filter and the arrows indicate which filter it will use to filter its prompt selections:

ka04W000000ObIzQAK_0EM440000002FqR.jpeg

 
Notice that the Customer State filter prompt will simply be using the Customer Region filter prompt to filter Customer State's elements. However, once past the second level, the prompted filter must point to a new filter (ex. 3 and 5) which points to both of the preceding filters. The following steps will demonstrate how to build this scenario:
 
1. Create a new filter called "1 - Customer Region" on the attribute Customer Region with the following criteria:
 
Qualify On: Elements
Operator: In List
Prompt: List all elements.
 

ka04W000000ObIzQAK_0EM440000002FqP.jpeg

 
 
2. Create a new filter called "2 - Customer State" on the attribute Customer State with the following criteria:
 
Qualify On: Elements
Operator: In List
Prompt: Use a filter to reduce the number of elements (use the "1 - Customer Region" filter)
 

ka04W000000ObIzQAK_0EM440000002Fq3.jpeg

 
 
3. Create a new filter called "3 - Customer Region and State" with the qualifications being a Shortcut to the Filter "1 - Customer Region" and a Shortcut to the Filter "2 - Customer State."
 

ka04W000000ObIzQAK_0EM440000002Fq9.jpeg

 
4. Create a new filter called "4 - Customer City" on the attribute Customer City with the following criteria:
 
Qualify On: Elements
Operator: In List
Prompt: Use a filter to reduce the number of elements (use the "3 - Customer Region and State" filter)
 

ka04W000000ObIzQAK_0EM440000002FqL.jpeg

 
 
5. Create a new filter called "5 - Customer Region, State, and City" with the qualifications being a Shortcut to the Filter "1 - Customer Region," "2 - Customer State," and "4 - Customer City."
 

ka04W000000ObIzQAK_0EM440000002FqJ.jpeg

 
6. Create a new filter called "6 - Customer" on the attribute Customer City with the following criteria:
 
Qualify On: Elements
Operator: In List
Prompt: Use a filter to reduce the number of elements (use the "5 - Customer Region, State, and City" filter)
 

ka04W000000ObIzQAK_0EM440000002FqF.jpeg

 
 
7. Create a new report and place Customer and Profit on the template, respectively. Also, place the following filters in the Report Filter:
 
1 - Customer Region
2 - Customer State
4 - Customer City
6 - Customer
 

ka04W000000ObIzQAK_0EM440000002FqD.jpeg

 
8. Execute the report. Users will now be prompted for each attribute filter with the elements being filtered correctly by the preceding attribute filters:

ka04W000000ObIzQAK_0EM440000002FqH.jpeg

 
 

ka04W000000ObIzQAK_0EM440000002Fq5.jpeg

 
 

ka04W000000ObIzQAK_0EM440000002FqN.jpeg

 
10847


Comment

0 comments

Details

Knowledge Article

Published:

April 4, 2017

Last Updated:

March 31, 2019