Good Afternoon,
I've written a TI process to import elemnts into a dimension but only want to show them in the consolidations rather than individually.
How do I do this, I've pasted the code I've used in Metadata below and followed an example on the internet which shows in the format I would like but I can't acheive it.
DIMENSIONELEMENTINSERT('Test', '', TimeData, 'n');
DIMENSIONELEMENTINSERT('Test','',P,'c');
DIMENSIONELEMENTINSERT('Test','',Q,'c');
DIMENSIONELEMENTINSERT('Test','',H,'c');
DIMENSIONELEMENTINSERT('Test','',F,'c');
DIMENSIONELEMENTINSERT('Test','',A,'c');
DIMENSIONELEMENTCOMPONENTADD('Test',Q,P,1.000000);
DIMENSIONELEMENTCOMPONENTADD('Test',H,Q,1.000000);
DIMENSIONELEMENTCOMPONENTADD('Test',F,H,1.000000);
DIMENSIONELEMENTCOMPONENTADD('Test',A,F,1.000000);
DIMENSIONELEMENTCOMPONENTADD('Test',P,TimeData,1.000000);
Your help would be must appreciated.
Regards
Tom
How to only show elements in consolidation and not by themsl
- jim wood
- Site Admin
- Posts: 3961
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Re: How to only show elements in consolidation and not by th
I'm not sure what you mean? If you mean when you go int o the subset editor they are seperate then you need to sort you dimension by hierarchy.
I hope that helps?
Jim.
I hope that helps?
Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
- paulsimon
- MVP
- Posts: 808
- Joined: Sat Sep 03, 2011 11:10 pm
- OLAP Product: TM1
- Version: PA 2.0.5
- Excel Version: 2016
- Contact:
Re: How to only show elements in consolidation and not by th
Hi,
To expand on what Jim said, you can use the DimensionSortOrder Function to specify the sort order.
Personally I prefer to put the sort directly into the }DimensionProperties cube, as I find then that it takes effect whenever the dimension changes, rather than only when the Dimension is empty as tends to be the case with DimensionSortOrder.
eg
CUBE: planning sample:}DimensionProperties
SORTCOMPONENTSSENSE SORTELEMENTSSENSE SORTCOMPONENTSTYPE SORTELEMENTSTYPE
model ASCENDING ASCENDING BYNAME BYHIERARCHY
Regards
Paul Simon
To expand on what Jim said, you can use the DimensionSortOrder Function to specify the sort order.
Personally I prefer to put the sort directly into the }DimensionProperties cube, as I find then that it takes effect whenever the dimension changes, rather than only when the Dimension is empty as tends to be the case with DimensionSortOrder.
eg
CUBE: planning sample:}DimensionProperties
SORTCOMPONENTSSENSE SORTELEMENTSSENSE SORTCOMPONENTSTYPE SORTELEMENTSTYPE
model ASCENDING ASCENDING BYNAME BYHIERARCHY
Regards
Paul Simon
-
- Posts: 7
- Joined: Fri Apr 15, 2011 11:34 am
- OLAP Product: TM1
- Version: TM1 9.1
- Excel Version: 2003 - 2007
- Location: London, UK
Re: How to only show elements in consolidation and not by th
Just realised I didn't say thank you for the help on this post.
It helped a great deal thank you.
It helped a great deal thank you.