Hi,
Year Branch EmployeeName Grade Base Salary
2012 Branch KL A Chris Grade 1 2000
2012 Branch KL B Richard Grade 2 3000
2012 Branch Pahang A Katie Grade 3 4000
I have above data in excel, I would like to upload the data to cube using TI
My cube have dimension
Time
Branch
Grade
Base Salary Measure
Time dimension have hierarchy
2012
-Jan 12
-Feb 12
-Mar 12
etc
I would like to map the data Year '2012' to the time dimension
2012 --> Jan 12
2012 --> Feb 12
2012 --> Mar 12
Any advice on how can I do this? Can i map the excel data to the dimension attribute?
Map excel data to dimension attribute
-
- Posts: 6
- Joined: Sat Oct 25, 2008 3:13 am
- OLAP Product: IBM Cognos TM1
- Version: 9.0 - 9.1 - 9.5.1 - 9.5.2
- Excel Version: 2003
Re: Map excel data to dimension attribute
Do you have months on your data or you want it to be distributed to all months?
If so just add 12 lines for Jan to Dec...
or use loop
If so just add 12 lines for Jan to Dec...
or use loop
-
- Posts: 8
- Joined: Fri Mar 11, 2011 9:10 am
- OLAP Product: TM1
- Version: 9.5.0
- Excel Version: 2007
Re: Map excel data to dimension attribute
Hi Chesteronrada,chesteronrada wrote:Do you have months on your data or you want it to be distributed to all months?
If so just add 12 lines for Jan to Dec...
or use loop
i want it to be distributed to all months
Thansk for the advice,i will try it..hope it works
-
- Posts: 8
- Joined: Fri Mar 11, 2011 9:10 am
- OLAP Product: TM1
- Version: 9.5.0
- Excel Version: 2007
Re: Map excel data to dimension attribute
lkyow wrote:Hi Chesteronrada,chesteronrada wrote:Do you have months on your data or you want it to be distributed to all months?
If so just add 12 lines for Jan to Dec...
or use loop
i want it to be distributed to all months
Thansk for the advice,i will try it..hope it works
Abyway,what do you mean by loop? I have no idea on doing this
-
- Posts: 6
- Joined: Sat Oct 25, 2008 3:13 am
- OLAP Product: IBM Cognos TM1
- Version: 9.0 - 9.1 - 9.5.1 - 9.5.2
- Excel Version: 2003
Re: Map excel data to dimension attribute
Code: Select all
#Add this on your prolog
v1 = 'Jan';
v2 = 'Feb';
v3 = 'Mar';
v4 = 'Apr';
v5 = 'May';
v6 = 'Jun';
v7 = 'Jul';
v8 = 'Aug';
v9 = 'Sep';
v10 = 'Oct';
v11 = 'Nov';
v12 = 'Dec';
#on your data tab
x=1;
WHILE(x <= 12);
VarS = EXPAND ( '%v' | NUMBERTOSTRING(x) | '%' );
CELLPUTN(Value, CubeName, VarS | SUBST(<year var>,3,2), Branch, Grade, Base Salary Measure)
x = x+1;
END;

-
- 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: Map excel data to dimension attribute
I would question why you feel the need to "map" the annual salary data to a cube that has a time dimension including all the months in the first place. If the annual salary does not change then why include the months in the time dimension? You only need months if the salary may change during any particular monthly but from the description of your data file that is not the case. Why blow out this HR data by month if each month is just going to be the same amount? If each month has the potential of being different then why do you need to map the annual salary to each month?
-
- Posts: 8
- Joined: Fri Mar 11, 2011 9:10 am
- OLAP Product: TM1
- Version: 9.5.0
- Excel Version: 2007
Re: Map excel data to dimension attribute
Hi Tomoktomok wrote:I would question why you feel the need to "map" the annual salary data to a cube that has a time dimension including all the months in the first place. If the annual salary does not change then why include the months in the time dimension? You only need months if the salary may change during any particular monthly but from the description of your data file that is not the case. Why blow out this HR data by month if each month is just going to be the same amount? If each month has the potential of being different then why do you need to map the annual salary to each month?
Because i need to fetch the HR salary data to Profit and Loss where in my profit and loss, i have month dimension...
where the customer need to anaylse P&L by monthly
- Martin Ryan
- Site Admin
- Posts: 2003
- Joined: Sat May 10, 2008 9:08 am
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2010
- Location: Wellington, New Zealand
- Contact:
Re: Map excel data to dimension attribute
If that's the only reason, then your P&L could simply divide the annual figure in the HR cube by 12 when it pulls it across.
Of course that means that the feeder from your HR cube will need to feed all 12 months, but that's not going to create any extra overhead than what you've got now.
Of course that means that the feeder from your HR cube will need to feed all 12 months, but that's not going to create any extra overhead than what you've got now.
Please do not send technical questions via private message or email. Post them in the forum where you'll probably get a faster reply, and everyone can benefit from the answers.
Jodi Ryan Family Lawyer
Jodi Ryan Family Lawyer