There are 2 conditions -
1) if value in the second Cube is empty it shows all detail elements of dimension.
2) And if value in the second Cube is not empty it uses this value for filtering.
I wrote query for the second case - look the code but I don't know how to connect with the first one
Code: Select all
{FILTER(
{TM1FILTERBYLEVEL( {TM1SUBSETALL( [dim_for_filter] )}, 0)},
[Cube1].([dim1].CurrentMember,
[dim2].CurrentMember,
[dim3].[Region]) =
[Cube2].([dim11].[Name], [dim12].[Region]) )}