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

KB4788: How to create a custom filter expression allowing prompting on a value between two attributes in MicroStrategy 9.x


Stefan Zepeda

Salesforce Solutions Architect • Strategy


How to create a custom filter expression allowing prompting on a value between two attributes in MicroStrategy 9.x

Assuming that users want to create a filter that returns information about a date, that lies between two date attributes: Effective Date and Term Date.

  • Create a value prompt and choose date prompt. For this example, the prompt is called Test Date.
  • Create an Advanced Qualification Filter as shown below.
ka02R000000kYRTQA2_0EM440000002GHT.gif
  • If the custom expression is entered logically (Prompt between Attribute_1 and Attribute_2) the expression is validated and users can save the filter.
ka02R000000kYRTQA2_0EM440000002GHV.gif

However, when the report is executed, the following error is returned:
" Engine Logic: Failed to generate SQL - please check dimensionality in metric definition]"
 
This occurs because the engine expects an attribute to be in place of the prompt.
 
With the SQL parser on, an error is received because it is not following the SQL parser rules. Therefore, users must use the ApplyComparison function to ignore the SQL parser as shown below:

ka02R000000kYRTQA2_0EM440000002GHX.gif

 
NOTE: KB5700-007-0107 describes the ApplyComparison function in detail as well as other functions that bypass the SQL parser in Strategy Desktop.
 
 
 


Comment

0 comments

Details

Knowledge Article

Published:

June 8, 2017

Last Updated:

June 8, 2017