Looks like it gives me incompatible dimensionality error. Could anyone help to confirm? Thanks.
e.g. Union( [dim].[a].children, [dim].[c].children )
Can MDX work across alt hierarchies from one dim?
-
- MVP
- Posts: 3185
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.0.9.18
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: Can MDX work across alt hierarchies from one dim?
That’s indeed incompatible. Are you not trying to make an MDX view using those 2 sets of elements (the ones that are shared) ?
Last edited by Wim Gielis on Tue Apr 23, 2024 9:18 am, edited 1 time in total.
Best regards,
Wim Gielis
IBM Champion 2024
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
-
- MVP
- Posts: 3685
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Can MDX work across alt hierarchies from one dim?
This can't work by definition. The hierarchies are separate entities. No C elements are shared.
You could use Generate to loop a set on one hierarchy and return the set of leaves (or even the set of C elements sharing the same name) existing in the other hierarchy.
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
- macsir
- MVP
- Posts: 785
- Joined: Wed May 30, 2012 6:50 am
- OLAP Product: TM1
- Version: PAL 2.0.9
- Excel Version: Office 365
- Contact:
Re: Can MDX work across alt hierarchies from one dim?
No, just want to see if it is possible in a MDX set.Wim Gielis wrote: ↑Tue Apr 23, 2024 6:44 am That’s indeed incompatible. Are you not trying to make an MDX view using those 2 sets of elements (the ones that are shared) ?
- macsir
- MVP
- Posts: 785
- Joined: Wed May 30, 2012 6:50 am
- OLAP Product: TM1
- Version: PAL 2.0.9
- Excel Version: Office 365
- Contact:
Re: Can MDX work across alt hierarchies from one dim?
Haven't used Generate function a lot but good to know.lotsaram wrote: ↑Tue Apr 23, 2024 7:16 amThis can't work by definition. The hierarchies are separate entities. No C elements are shared.
You could use Generate to loop a set on one hierarchy and return the set of leaves (or even the set of C elements sharing the same name) existing in the other hierarchy.
-
- MVP
- Posts: 3185
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.0.9.18
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: Can MDX work across alt hierarchies from one dim?
Then the answer is no, as what Lotsa also replied.macsir wrote: ↑Tue Apr 23, 2024 10:31 amNo, just want to see if it is possible in a MDX set.Wim Gielis wrote: ↑Tue Apr 23, 2024 6:44 am That’s indeed incompatible. Are you not trying to make an MDX view using those 2 sets of elements (the ones that are shared) ?
Best regards,
Wim Gielis
IBM Champion 2024
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
-
- Community Contributor
- Posts: 162
- Joined: Tue Apr 02, 2013 1:41 pm
- OLAP Product: tm1, cognos bi
- Version: from TM1 9.4 to PA 2.0.9.6
- Excel Version: 2010
- Location: Toronto, ON
Re: Can MDX work across alt hierarchies from one dim?
Not possible, different hierarchies of a dimension are treated the same as 2 separate dimensions.
Ardian Alikaj
- PavoGa
- MVP
- Posts: 618
- Joined: Thu Apr 18, 2013 6:59 pm
- OLAP Product: TM1
- Version: 10.2.2 FP7, PA2.0.9.1
- Excel Version: 2013 PAW
- Location: Charleston, Tennessee
Re: Can MDX work across alt hierarchies from one dim?
What is it you are trying to accomplish exactly?
Also, the example could be confusing. From the coversation, it is assumed that a and c are separate hierarchies within the same dimension and if so, why is children used? Or are a and c consolidations within the same dimension?
Is it:
UNION( [dim1].[consolidation_a].children, [dim2].[consolidation_c].children) (not possible)
or
UNION( [dim1].[alt_hier_a].[some consol].children, [dim1].[alt_hier_c].[some aconsol].children) (pretty sure not possible either)
or
UNION( [dim1].[consolidation_a].children, [dim1].[consolidation_c].children) (yes possible)
If separate dimensions or hierarchies, you could (maybe) generate an INTERSECTION of the two sets, but not a UNION as mentioned.
NOTE; an intersection could not be created using the INTERSECTION function, but GENERATE and StrToMember nonsense and it would be tricky if possible.
Ty
Cleveland, TN
Cleveland, TN