}HierarchyProperties

Post Reply
Wim Gielis
MVP
Posts: 3240
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

}HierarchyProperties

Post by Wim Gielis »

Hello,

Does anyone know if we can use the above control cube in MDX statements in plain TM1 ? If I read this page:

https://www.ibm.com/support/knowledgece ... n0274.html
You can assign your own custom names to the hierarchy levels of the TM1® dimension by using the }HierarchyProperties control cube. The named levels you create can then be used when you externally access TM1 data with IBM® Cognos® Report Studio, MDX statements or other MDX OLAP tools. You can also assign a default member for the dimension.
Or would it mean MDX statements outside of TM1 ?

I tried syntax like:

Code: Select all

{[Period].[Quarters]}
where Quarters was defined in the }HierarchyProperties cube, after which I ran

Code: Select all

RefreshMdxHierarchy('Period');
in TI.

Thanks !
Best regards,

Wim Gielis

IBM Champion 2024-2025
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
User avatar
gtonkin
MVP
Posts: 1265
Joined: Thu May 06, 2010 3:03 pm
OLAP Product: TM1
Version: Latest and greatest
Excel Version: Office 365 64-bit
Location: JHB, South Africa
Contact:

Re: }HierarchyProperties

Post by gtonkin »

Hi Wim,
I happened on your post whilst trying to do something similar today.
I managed to get something returned using this syntax

Code: Select all

 { [<Dimension>].[<Level Name>].Members} 
Unfortunately my dimension contains 6 hierarchies and each level within the hierarchies have unique names - I was hoping to use the }HierarchyProperties to name my levels more as a reference and to keep my sanity in check.
From what I see in the }HierarchyProperties cube, I would need to add additional hierarchy elements alongside hierarchy0 so that I can input my level name against the associated hierarchy for the dimensions.
The next step would be seeing if it is possible to query a level for a particular hierarchy. Right now the code above brings back elements from each of the hierarchies.
Hope the MDX helps you at any rate.
BR, George.

Learn something new: MDX Views
Post Reply