I created a dynamic subset on my server and it works. It has elements in it as it should. I can use it in a cube view within Architect or Perspectives. However, when I use it within a DBRW formula, I get a Key*Error. What's really interesting is that if I make a cube view and do a slice, recalculate, I get a key error in Excel. Any idea why that would be? I'm an admin on the server so it shouldn't be a security issue.
Thanks!
Created a dynamic subset. It works in TM1, not in DBRW!
-
- MVP
- Posts: 1822
- Joined: Mon Dec 05, 2011 11:51 am
- OLAP Product: Cognos TM1
- Version: PA2.0 and most of the old ones
- Excel Version: All of em
- Location: Manchester, United Kingdom
- Contact:
Re: Created a dynamic subset. It works in TM1, not in DBRW!
What do you mean by using a dynamic subset inside a dbrw?
Is it like dbrw (cube, subnm (dim, subset, 1)...) or something else? A dbrw accepts element names as its parameters not a whole subset.
Edit - realised what I've said is rubbish. Always forget you can reference subsets in db.. formulas .. might remember if they get round to documenting it
Is it like dbrw (cube, subnm (dim, subset, 1)...) or something else? A dbrw accepts element names as its parameters not a whole subset.
Edit - realised what I've said is rubbish. Always forget you can reference subsets in db.. formulas .. might remember if they get round to documenting it
Last edited by declanr on Wed Aug 20, 2014 6:29 pm, edited 1 time in total.
Declan Rodger
-
- Posts: 52
- Joined: Mon Sep 20, 2010 2:20 pm
- OLAP Product: IBM TM1
- Version: 9.5.1
- Excel Version: 2007 SP2
Re: Created a dynamic subset. It works in TM1, not in DBRW!
Oddly enough, refreshing security worked. Perhaps it's because we're using rule based security but I'd figure as an admin it shouldn't matter. Another one of those great TM1 "features."
-
- MVP
- Posts: 3182
- 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: Created a dynamic subset. It works in TM1, not in DBRW!
Hello Chris
Good that it works, but AFAIK this behaviour is not documented.
Also, if you have rules at C level, you might see something different in the cube than your usual sum of elements.
Is there any reason why a regular consolidation is not an option?
Use at your own risk.
Good that it works, but AFAIK this behaviour is not documented.
Also, if you have rules at C level, you might see something different in the cube than your usual sum of elements.
Is there any reason why a regular consolidation is not an option?
Use at your own risk.
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
-
- Posts: 31
- Joined: Thu Apr 25, 2013 1:36 pm
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2007
Re: Created a dynamic subset. It works in TM1, not in DBRW!
Also keep in mind when you are using a dynamic subset in excel/websheet that you will need to have the dynamic subset calculate before the DBRW does. I received a Key*Error when creating a websheet in perspectives and the solution was the dynamic subset dimension needed to be represented as a DBR. DBR allows you to retrieve data from a cube before your DBRW's retrieved. For Example: Lets say you have a currency code attribute attached to the cost center dimension. The DBR would look something like this.
DBR("TM1_PROD:}ElementAttribute_CostCenter",B2,"CurrencyCide")
Where B2 is the cost center element on your websheet.
DBR("TM1_PROD:}ElementAttribute_CostCenter",B2,"CurrencyCide")
Where B2 is the cost center element on your websheet.