Create Subset using MDX based on another dimension
Posted: Mon May 19, 2014 1:20 pm
Hi All
There are a few posts on this topic but none of them has helped me solve this issue.
I have 2 dimensions used in different cubes:
Account
MIDI_Accounts
MIDI_Accounts contains a subset of Accounts (which have a source attribute of 'U') as well as other Accounts not in the Account dimension (with a different source attribute value)
I am trying to import data from one cube to another, and for this purpose want to create a subset on the Account dimension with all the Accounts that also exist in the MIDI_Accounts dimension (all the ones with the source attribute of 'U').
I have tried multiple MDX expressions using the source attribute (all with syntax errors), this is what I have at the moment:
{FILTER(
{TM1SUBSETALL( [Account] )},
[Account] = {FILTER( {TM1SUBSETALL( [MIDI_Accounts] )}, [MIDI_Accounts].[Source] = "U")}
)}
I've also tried to do just a simple Filter based on the other dimension - this doesn't return an error, but it doesn't return any elements either:
{FILTER(
{TM1SUBSETALL( [Account] )},
[MIDI_Accounts].[Source] = "U"
)}
Many thanks
There are a few posts on this topic but none of them has helped me solve this issue.
I have 2 dimensions used in different cubes:
Account
MIDI_Accounts
MIDI_Accounts contains a subset of Accounts (which have a source attribute of 'U') as well as other Accounts not in the Account dimension (with a different source attribute value)
I am trying to import data from one cube to another, and for this purpose want to create a subset on the Account dimension with all the Accounts that also exist in the MIDI_Accounts dimension (all the ones with the source attribute of 'U').
I have tried multiple MDX expressions using the source attribute (all with syntax errors), this is what I have at the moment:
{FILTER(
{TM1SUBSETALL( [Account] )},
[Account] = {FILTER( {TM1SUBSETALL( [MIDI_Accounts] )}, [MIDI_Accounts].[Source] = "U")}
)}
I've also tried to do just a simple Filter based on the other dimension - this doesn't return an error, but it doesn't return any elements either:
{FILTER(
{TM1SUBSETALL( [Account] )},
[MIDI_Accounts].[Source] = "U"
)}
Many thanks