Does anyone know how to spool a tm1 subset to Excel along with the attributes belonging to that subset?
I cannot use activeforms for the task in mind, instead having to manipulate a slice using VBA.
I couldn't seem to find a worksheet function (or method in VBA) that allows you to do the above.
Any ideas would be most helpful.
Thanks,
Dan
spool a tm1 subset to Excel
-
- Community Contributor
- Posts: 128
- Joined: Wed Oct 14, 2009 7:46 am
- OLAP Product: TM1
- Version: 9.4
- Excel Version: 11
- Location: London
- Steve Rowe
- Site Admin
- Posts: 2456
- Joined: Wed May 14, 2008 4:25 pm
- OLAP Product: TM1
- Version: TM1 v6,v7,v8,v9,v10,v11+PAW
- Excel Version: Nearly all of them
Re: spool a tm1 subset to Excel
HI Dan,
You should be able to use subnm to step through a subset by advancing the index (using row() if you are in an excel spreadsheet). To bring back the attribute use DBRA.
HTH
You should be able to use subnm to step through a subset by advancing the index (using row() if you are in an excel spreadsheet). To bring back the attribute use DBRA.
HTH
Technical Director
www.infocat.co.uk
www.infocat.co.uk
- LoadzaGrunt
- Posts: 72
- Joined: Tue May 26, 2009 2:23 am
- Version: LoadzaVersions
- Excel Version: LoadzaVersions
Re: spool a tm1 subset to Excel
SUBPICK might help
-
- MVP
- Posts: 3703
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: spool a tm1 subset to Excel
I'm not sure what you mean by "spool" in this context but Steve's suggestion of using SUBNM with an index argument will allow you to list out all subset members.
Incidentally why couldn't you use an active form? You can edit and add to formulas in an active form much as you can in any slice ...
Incidentally why couldn't you use an active form? You can edit and add to formulas in an active form much as you can in any slice ...
-
- Community Contributor
- Posts: 128
- Joined: Wed Oct 14, 2009 7:46 am
- OLAP Product: TM1
- Version: 9.4
- Excel Version: 11
- Location: London
Re: spool a tm1 subset to Excel
I want to dynamically decide what account in my CoA dimension I need to post to depending on the project:
Table (derived from TM1 subset):
Project Type Attribute
Project1 External
Project2 Internal
... ...
Slice:
Project CoA Data
Project1 Sales External 10.3
The project dimension should have subsets for each organisation, and I want to be able to create the table using VBA or worksheet functions. I don't think this can be done in an active form, as placing the 2 dimensions on the vertical axis will repeat each CoA element for each project, of which only 1 is applicable.
Any help greatly appreciated.
Dan
Table (derived from TM1 subset):
Project Type Attribute
Project1 External
Project2 Internal
... ...
Slice:
Project CoA Data
Project1 Sales External 10.3
The project dimension should have subsets for each organisation, and I want to be able to create the table using VBA or worksheet functions. I don't think this can be done in an active form, as placing the 2 dimensions on the vertical axis will repeat each CoA element for each project, of which only 1 is applicable.
Any help greatly appreciated.
Dan
- Steve Rowe
- Site Admin
- Posts: 2456
- Joined: Wed May 14, 2008 4:25 pm
- OLAP Product: TM1
- Version: TM1 v6,v7,v8,v9,v10,v11+PAW
- Excel Version: Nearly all of them
Re: spool a tm1 subset to Excel
Dan,
If it's 1:1 project to CoA it's pretty straight foward.
You can list the project subset using subNm with a row() based index.
You'll need to create an attribute on the project dim that holds the relevant CoA for the project code.
Use the DBRA function to retrieve the attribute in the spredsheet.
HTH
If it's 1:1 project to CoA it's pretty straight foward.
You can list the project subset using subNm with a row() based index.
You'll need to create an attribute on the project dim that holds the relevant CoA for the project code.
Use the DBRA function to retrieve the attribute in the spredsheet.
HTH
Technical Director
www.infocat.co.uk
www.infocat.co.uk