Hi James,
Company is an attribute of a cost center. There could be more than one company mapped to a cost center. but there is only one to one relationship for a CC.
All my company attribute has got only four letters, below is the list of values i have for the company attriute at the moment
FHFM
LYPP
LYPM
LYPE
FHFE
APHE
APHS
CHEE
CHEM
EAPL
EAPE
as you can see, company attrbute has got E at other points too (eg LYPE)
Hope this answers your question.
cheers,
MDX to filter attribute and cube data
-
- Posts: 20
- Joined: Tue Jan 31, 2012 5:12 am
- OLAP Product: TM1
- Version: 10.1.1
- Excel Version: 2007
-
- Posts: 8
- Joined: Wed Dec 15, 2010 12:42 am
- OLAP Product: TM1
- Version: 9.4.x
- Excel Version: 2007
Re: MDX to filter attribute and cube data
Hi vineshg86,
Try this:
Cheers,
James
Try this:
Code: Select all
{ FILTER( { TM1FILTERBYLEVEL( { TM1SUBSETALL( [cost centre] ) }, 0 ) }, LEFT( [cost centre].[company], 1 ) = "E" ) }
James
-
- Posts: 20
- Joined: Tue Jan 31, 2012 5:12 am
- OLAP Product: TM1
- Version: 10.1.1
- Excel Version: 2007
Re: MDX to filter attribute and cube data
OMG James!! You are simply a legend!!!
That works perfect. Thanks a lot again.
Cheers
That works perfect. Thanks a lot again.
Cheers
-
- Posts: 20
- Joined: Tue Jan 31, 2012 5:12 am
- OLAP Product: TM1
- Version: 10.1.1
- Excel Version: 2007
Re: MDX to filter attribute and cube data
I should also add that you are a master of MDX
Cheers
Cheers
-
- Community Contributor
- Posts: 324
- Joined: Mon Jul 02, 2012 9:39 pm
- OLAP Product: TM1
- Version: PAL 2.0.8
- Excel Version: 2016
- Location: Sydney, Australia
Re: MDX to filter attribute and cube data
Good thread here.
You can also use
{ FILTER( { TM1FILTERBYLEVEL( { TM1SUBSETALL( [cost centre] ) }, 0 ) }, RIGHT( [cost centre].[company], 1 ) = "E" ) } to imitate ends with * wildcard.
Oddly enough MID function doesn't seem to compile, so I have a feeling its not supported by TM1.
Evgeny
You can also use
{ FILTER( { TM1FILTERBYLEVEL( { TM1SUBSETALL( [cost centre] ) }, 0 ) }, RIGHT( [cost centre].[company], 1 ) = "E" ) } to imitate ends with * wildcard.
Oddly enough MID function doesn't seem to compile, so I have a feeling its not supported by TM1.
Evgeny
-
- Posts: 8
- Joined: Wed Dec 15, 2010 12:42 am
- OLAP Product: TM1
- Version: 9.4.x
- Excel Version: 2007
Re: MDX to filter attribute and cube data
haha, no , not really but thank you for the kind words. It was great to work this out as it helped me with the issue i was having.vigneshg86 wrote:I should also add that you are a master of MDX
Cheers
All the best
-
- Posts: 20
- Joined: Tue Jan 31, 2012 5:12 am
- OLAP Product: TM1
- Version: 10.1.1
- Excel Version: 2007
Re: MDX to filter attribute and cube data
Thanks Evgeny for your help too. I will try your expression soon.
James, Please stay in touch through this forum or email. my email address is (sgvignesh@hotmail.com)
Best of luck
Cheers
James, Please stay in touch through this forum or email. my email address is (sgvignesh@hotmail.com)
Best of luck
Cheers