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

KB11121: How does the VLDB setting ‘Keep Unrelated Filter Elements’ work in MicroStrategy 9.x?


Community Admin

• Strategy


The VLDB property 'Unrelated Filter Options' is accessible from the Data > VLDB Properties > Query Optimizations contains the following options:
 

  • Keep Unrelated Filter
  • Remove Unrelated Filter (Default inherited Value)
ka04W000000OfIBQA0_0EM440000002Bm4.gif

 
By default, the Strategy Engine removes any filter criteria if it doesn't relate to any objects on the report. The option 'Keep Unrelated Filter' will retain filter(s) unrelated to objects in the template only when

  • Two filters interact with each other, AND
  • one or more of the attributes in the filter do not interact with the attributes on the template.

In absence of either condition, the Engine ignores the unrelated filter.
 
 
Examples of such conditions are listed below:
 

  • the report contains a 'Report as Filter'
  • the report contains a Joint Element List
  • the Metric Qualification is set to a different output level than the template level

Consider a report with 'Year' on the template. In the report filter area, a Joint Element List is defined with in list , ] and Country In List (USA), as shown below:

ka04W000000OfIBQA0_0EM440000002Bm2.jpeg

 
In the generated SQL, the Strategy Engine understands that one or more conditions in the filter are not related to the attributes on the template and removes the condition. For the above report, the following SQL is generated:
 
select distinct a11. AS YEAR_ID
from a11
where (a11. = 20021
or a11. = 20024)
In order to keep the unrelated filters as well, the VLDB setting 'Keep Unrelated Filter' must be enabled. It is located in VLDB Settings > Query Optimizations > Unrelated Filter Options.
 
In this report, the two filters with Quarter and Year interact with each other (Condition A) AND the Country filter does not interact with the attributes on the template (Condition B).
 
Note how the SQL changes below:
 
create table ZZSQ00 (
QUARTER_ID SHORT)
insert into ZZSQ00
select distinct s22. AS QUARTER_ID
from s21,
s22
where (((s21. = 4
and s22. = 20021)
or (s21. = 1
and s22. = 20024))
and s21. in (1))
select distinct a11. AS YEAR_ID
from pa1,
a11
where pa1. = a11.


Comment

0 comments

Details

Knowledge Article

Published:

May 3, 2017

Last Updated:

May 3, 2017