I really hate being a newbie, but if i don't ask I won't learn... Is it possible to build a subset of a dimension with a SQL query?
Here's my situation:
In one cube, we want to present sales data for only those products that have had history over the last two years, which would be a subset of a dimension I'll call dimProducts, which is a list of all active products. The dimProducts dimension in its entirety would be used in another cube. If we can create the subset via a query, mapping of the data in rules is simplified.
I've done some searching, but haven't found anything directly on point. Any help would be much appreciated.
Mike
Build subset with SQL query?
-
- Regular Participant
- Posts: 164
- Joined: Tue May 04, 2010 10:49 am
- OLAP Product: Cognos TM1
- Version: 9.4.1 - 10.1
- Excel Version: 2003 and 2007
Re: Build subset with SQL query?
You can create a TI process with a SQL query as a data source and have that create a subset. Is that what you mean?mmckimson wrote:I really hate being a newbie, but if i don't ask I won't learn... Is it possible to build a subset of a dimension with a SQL query?
Here's my situation:
In one cube, we want to present sales data for only those products that have had history over the last two years, which would be a subset of a dimension I'll call dimProducts, which is a list of all active products. The dimProducts dimension in its entirety would be used in another cube. If we can create the subset via a query, mapping of the data in rules is simplified.
I've done some searching, but haven't found anything directly on point. Any help would be much appreciated.
Mike
-
- Posts: 46
- Joined: Fri Jun 15, 2012 1:46 pm
- OLAP Product: TM1
- Version: 10.1
- Excel Version: Office 10
Re: Build subset with SQL query?
Exactly... I'll give that a try.
-
- Posts: 46
- Joined: Fri Jun 15, 2012 1:46 pm
- OLAP Product: TM1
- Version: 10.1
- Excel Version: Office 10
Re: Build subset with SQL query?
In reviewing the current process that builds my dimension, we are updating the dimension elements, it's attributes and roll ups but I don't know how exactly I would tell it to take the query to save it as a subset on my Products dimension. This is probably easy, but I don't really know what to do. I assume there is probably something I do in the scripting, but I don't really know where to start.
Mike
Mike
-
- 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: Build subset with SQL query?
Here's what you can do. You can use the search function on this web site instead of asking to be spoon fed everything. There has to literally dozens of posts about building subsets via TI. You also need to think about reading the manuals AND taking a training class. Relying on the kindness of strangers is not a substitute for taking training. Eventually you are going to wear out your welcome.