The Multisource reporting option in Strategy Engine 9.x and 10.x includes the ability to use an MDX Cube report as a filter in a relational SQL report.
The following procedure configures an MDX data source for filtering use.






The SQL view shows how the feature operates. The MDX results are selected into Strategy Intelligence Server memory, and the relevant filtering attribute IDs are inserted into an intermediate table in the data warehouse. This intermediate table is joined to the fact table to apply the filter to the main report.
Sql
Pass0 -
Duration: 0:00:04.28
Rows selected: 10
with set as '{...members}'
member . as '(. / .)'
set as 'Filter(, . >= 0.25)'
set as '{Generate(, {..CurrentMember})}'
select {.} on columns,
non empty hierarchize({}) dimension properties MEMBER_KEY on rows
from
cell properties CELL_ORDINAL, FORMATTED_VALUE, VALUE, FORMAT_STRING
Pass1 -
Duration: 0:00:00.07
create table #ZZTUQ00009UOP000(
ITEM_ID SMALLINT)
Pass2 -
Duration: 0:00:00.03
Rows inserted: 10
insert into #ZZTUQ00009UOP000 values (1)
Pass3 -
Duration: 0:00:00.04
Rows selected: 30
select a11.ITEM_ID ITEM_ID,
max(a14.ITEM_NAME) ITEM_NAME0,
a13.YEAR_ID YEAR_ID,
sum(a11.UNITS_RECEIVED) WJXBFS1
from INVENTORY_ORDERS a11
join #ZZTUQ00009UOP000 pa12
on (a11.ITEM_ID = pa12.ITEM_ID)
join LU_MONTH a13
on (a11.MONTH_ID = a13.MONTH_ID)
join LU_ITEM a14
on (a11.ITEM_ID = a14.ITEM_ID)
group by a11.ITEM_ID,
a13.YEAR_ID
Notes
The only type of report in Strategy that allows reports to be used as filters is a standard relational report. Extended Data Access reports have not supported report-as-filter since their introduction in Strategy 8.0.0. Extended Data Access includes Freeform SQL, Query Builder and MDX reports. The reason for this restriction is that using a report as filter requires the creation of an intermediate table, hence, multipass SQL. Freeform SQL and Query Builder reports are, by definition, single pass and cannot incorporate reports as filters. The MDX language does not include the capability to create and insert arbitrary data into an intermediate table. Therefore, MDX reports can also not use reports as filters.
To use an MDX report as a filter in a SQL report, the Strategy Multisource option must be installed and the user running the report must have the privilege to execute reports against multiple data sources.
The Multisource option does not support combining attributes and metrics from SQL and MDX into the same report.