When using the subset editor you have change the mdx expression of your dynamic subset and save it again.
Its there a way to do this with TI ?
I can only find SubsetCreate, but when a subset is in use by a view you can't just delete it and recerate it.
Kind regards, Harry
Replace MDX in Subset
- jim wood
- Site Admin
- Posts: 3958
- 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: Replace MDX in Subset
I've done this (yet) but I beleive there is a section in the manuals about using MDX in TI and I know there are some posts on this forum about it.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
-
- MVP
- Posts: 2836
- Joined: Tue Feb 16, 2010 2:39 pm
- OLAP Product: TM1, Palo
- Version: Beginning of time thru 10.2
- Excel Version: 2003-2007-2010-2013
- Location: Atlanta, GA
- Contact:
Re: Replace MDX in Subset
You must not have looked very hard. Right next to SubsetCreate in the documentation there is a function called SubsetCreateByMDX.
-
- Posts: 13
- Joined: Thu Oct 28, 2010 9:44 am
- OLAP Product: TM1, SSAS
- Version: 9.4
- Excel Version: 2010
Re: Replace MDX in Subset
Guys,
I'm looking for a way to change the mdx statement of an existing subset that is used in views.
The SubsetCreateByMDX is well known, but i have some subsets that are used by users in their own views, and now i would like to change the subset-mdx by code .. Not by the subset-editors.
Kind Regards.
I'm looking for a way to change the mdx statement of an existing subset that is used in views.
The SubsetCreateByMDX is well known, but i have some subsets that are used by users in their own views, and now i would like to change the subset-mdx by code .. Not by the subset-editors.
Kind Regards.
-
- MVP
- Posts: 195
- Joined: Wed Jul 22, 2009 10:35 pm
- OLAP Product: TM1
- Version: 9.5.2 FP3
- Excel Version: 2010
Re: Replace MDX in Subset
As far as I know it is not possible via TI, but if I am wrong, I would love to know the solution (you can't CreateSubsetByMDX when its name already exists, you can't delete it if it is used by a view).
So either you (terrible):
1. Remove subset from views (you remove subset from a view by assigning another "dummy" subset for a little while, as there is no RemoveSubsetFromView function).
2. Destroy subset.
3. Create subset with new MDX.
4. Assign subset back to all views.
Or (also terrible):
1. Lay down server.
2. Play around with subset definition file - remember not only MDX needs to be changed, but you also have there information about how many characters MDX has, so you need to update this one also.
3. Bring server back to life.
HTH
So either you (terrible):
1. Remove subset from views (you remove subset from a view by assigning another "dummy" subset for a little while, as there is no RemoveSubsetFromView function).
2. Destroy subset.
3. Create subset with new MDX.
4. Assign subset back to all views.
Or (also terrible):
1. Lay down server.
2. Play around with subset definition file - remember not only MDX needs to be changed, but you also have there information about how many characters MDX has, so you need to update this one also.
3. Bring server back to life.
HTH
-
- Posts: 13
- Joined: Thu Oct 28, 2010 9:44 am
- OLAP Product: TM1, SSAS
- Version: 9.4
- Excel Version: 2010
Re: Replace MDX in Subset
That are techniques that would work but are quite crazy.
Then i will continue to do it by the subset-editor.
I've seen that in the API it is possible !
Their API is better than the TI functions .... grmmblll.
Then i will continue to do it by the subset-editor.
I've seen that in the API it is possible !
Their API is better than the TI functions .... grmmblll.