Writing Data from Excel to Tm1 Cube
-
- Posts: 7
- Joined: Fri Nov 06, 2009 2:22 am
- OLAP Product: TM1APPLIX
- Version: 9.0sp2
- Excel Version: 2003
Writing Data from Excel to Tm1 Cube
Could any one please advise me how to write data from Excelsheet to TM1 Cube What are the step and involved
-
- Site Admin
- Posts: 1458
- Joined: Wed May 28, 2008 9:09 am
Re: Writing Data from Excel to Tm1 Cube
Read the DBSW entry in the help. This is an Excel function which does exactly what you want. You can put it in your worksheet or call it using VBA eg application.run("DBSW"...).
Re: Writing Data from Excel to Tm1 Cube
You can try the DBS - function as well.
It gets explained very good in the help file.
It gets explained very good in the help file.
- Martin Ryan
- Site Admin
- Posts: 2000
- Joined: Sat May 10, 2008 9:08 am
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2010
- Location: Wellington, New Zealand
- Contact:
Re: Writing Data from Excel to Tm1 Cube
DBSW is the generally preferred method as it is optimised to minimise network traffic. DBS should only be used if there is a problem with the DBSW formulae (manifest by *key_errs that won't go away), or if you require things to be calculated in sequence, rather than all in one go.
There's also DBSS for sending up strings.
Martin
There's also DBSS for sending up strings.
Martin
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
-
- Posts: 7
- Joined: Fri Nov 06, 2009 2:22 am
- OLAP Product: TM1APPLIX
- Version: 9.0sp2
- Excel Version: 2003
Re: Writing Data from Excel to Tm1 Cube
Thanks you All for the information. Appreciate for your all quick suggestion. I tried to do this following steps still I am getting Key error .Please advise Am i doing anything wrong?
I have a cube called status. which has two dimension one is month and other is text. when i did the DWR i see a result like this
Text
MOnth 10
when i try send with DBSW(12,Statuscube, Month ,Text) it still show a key error.Please advise me
I have a cube called status. which has two dimension one is month and other is text. when i did the DWR i see a result like this
Text
MOnth 10
when i try send with DBSW(12,Statuscube, Month ,Text) it still show a key error.Please advise me
-
- Site Admin
- Posts: 6654
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Writing Data from Excel to Tm1 Cube
A key error means that either:Firefly wrote:Thanks you All for the information. Appreciate for your all quick suggestion. I tried to do this following steps still I am getting Key error .Please advise Am i doing anything wrong?
I have a cube called status. which has two dimension one is month and other is text. when i did the DWR i see a result like this
Text
MOnth 10
when i try send with DBSW(12,Statuscube, Month ,Text) it still show a key error.Please advise me
- The name of the cube is wrong; or
- The names that you're using for the elements are wrong.
The TM1 Tools add-in (which you can download from this thread will help you to identify which references in your formula have a problem.
Also, if that really is supposed to be a "text" value (that is, you have the element defined as an "S" type rather than an "N" type in the Text dimension) you should be using DBSS, not DBSW. As per the Help file:
(In reality, in 9.4 I have no problem sending a string to a cube using DBSW. However you shouldn't rely on it.)DBSW sends a numeric value to a TM1 cube. This function cannot send a string to a cube. To send strings, use the DBSS function.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
- paulsimon
- MVP
- Posts: 808
- Joined: Sat Sep 03, 2011 11:10 pm
- OLAP Product: TM1
- Version: PA 2.0.5
- Excel Version: 2016
- Contact:
Re: Writing Data from Excel to Tm1 Cube
Hi
Is this literally what you are typing?
This implies that you are sending numeric data in to a text cell.
I am not clear as to whether Statuscube is a literal value or a Range Name.
I would expect your formula to be more like
=DBSS("12","MyServer:StatusCube","Month","Text")
Regards
Paul Simon
Is this literally what you are typing?
DBSW(12,Statuscube, Month ,Text)
This implies that you are sending numeric data in to a text cell.
I am not clear as to whether Statuscube is a literal value or a Range Name.
I would expect your formula to be more like
=DBSS("12","MyServer:StatusCube","Month","Text")
Regards
Paul Simon
-
- Posts: 7
- Joined: Fri Nov 06, 2009 2:22 am
- OLAP Product: TM1APPLIX
- Version: 9.0sp2
- Excel Version: 2003
Re: Writing Data from Excel to Tm1 Cube
Thank you all now it worked after using the DBSS function as it was going to string.
-
- Posts: 18
- Joined: Wed Mar 30, 2011 1:51 am
- OLAP Product: TM1
- Version: 9.4
- Excel Version: 2003
Re: Writing Data from Excel to Tm1 Cube
help please
=DBSS(B63,$D$50,pVersion,pYear,$D$56,pDivision,pBusinessUnit,pCostCategory,$A63,BK$61)
result
=DBSS("ukb0m","Global Overheads Budget Data","Budget V1","FY12","Annual","UK Business Parks","Developments","Travel and Entertainment","0002","Cost Code")
even I have result in the fx I still have key_err on my excel sheet.
I am wondering if I am doing anything wrong ..
thanks
Edward
=DBSS(B63,$D$50,pVersion,pYear,$D$56,pDivision,pBusinessUnit,pCostCategory,$A63,BK$61)
result
=DBSS("ukb0m","Global Overheads Budget Data","Budget V1","FY12","Annual","UK Business Parks","Developments","Travel and Entertainment","0002","Cost Code")
even I have result in the fx I still have key_err on my excel sheet.
I am wondering if I am doing anything wrong ..
thanks
Edward
-
- Site Admin
- Posts: 6654
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Writing Data from Excel to Tm1 Cube
Aaaaand... "the fx" in this context would mean, what exactly? I'd normally think that you're referring to "the function" but you're saying that the result of that is a key error.edward wrote: =DBSS(B63,$D$50,pVersion,pYear,$D$56,pDivision,pBusinessUnit,pCostCategory,$A63,BK$61)
result
=DBSS("ukb0m","Global Overheads Budget Data","Budget V1","FY12","Annual","UK Business Parks","Developments","Travel and Entertainment","0002","Cost Code")
even I have result in the fx I still have key_err on my excel sheet.
If any of the cells that you point to in your DBS formula contain DBRW formulas, change them to DBR instead to ensure that they're evaluated separately from the main batch of TM1 formulas. If not, describe the formulas that the cells contain.edward wrote:I am wondering if I am doing anything wrong ..
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
- Martin Ryan
- Site Admin
- Posts: 2000
- Joined: Sat May 10, 2008 9:08 am
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2010
- Location: Wellington, New Zealand
- Contact:
Re: Writing Data from Excel to Tm1 Cube
You're missing the server reference from your cube reference in argument two. I.e. you need something like this (where server is your TM1 instance name)edward wrote:
=DBSS("ukb0m","Global Overheads Budget Data","Budget V1","FY12","Annual","UK Business Parks","Developments","Travel and Entertainment","0002","Cost Code")
=DBSS("ukb0m","server:Global Overheads Budget Data","Budget V1","FY12","Annual","UK Business Parks","Developments","Travel and Entertainment","0002","Cost Code")
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
-
- Site Admin
- Posts: 6654
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Writing Data from Excel to Tm1 Cube
D'oh! I remember thinking about that when I was writing the reply, then left that entire paragraph out. The perils of multi-tasking...Martin Ryan wrote:You're missing the server reference from your cube reference in argument two. I.e. you need something like this (where server is your TM1 instance name)edward wrote:
=DBSS("ukb0m","Global Overheads Budget Data","Budget V1","FY12","Annual","UK Business Parks","Developments","Travel and Entertainment","0002","Cost Code")
=DBSS("ukb0m","server:Global Overheads Budget Data","Budget V1","FY12","Annual","UK Business Parks","Developments","Travel and Entertainment","0002","Cost Code")
Martin is probably right; what I left out of my reply was that you can only leave out the server name if you're running a local server. If it's a local server then "CubeName" alone will work, but for any remote server it has to be, as Martin said, "ServerName:CubeName"
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-
- Posts: 18
- Joined: Wed Mar 30, 2011 1:51 am
- OLAP Product: TM1
- Version: 9.4
- Excel Version: 2003
Re: Writing Data from Excel to Tm1 Cube
Thanks Guys it worked when I add the server name .. now I have a problem ... one line with the DBSS is correct in the cube and rest are all in correct when it writes in the cube ... excel 2003 .. I tried it from tm1 9.4.1 and 9.5.1 .. all have the same outcome that most of the numbers are incorrect in the cube , however, the spreadsheet has the correct number ...
-
- Site Admin
- Posts: 6654
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Writing Data from Excel to Tm1 Cube
Are you saying that you're using a DBSS to write numbers? Because if you are, that won't work. If you aren't, please clarify exactly what you are doing.edward wrote:Thanks Guys it worked when I add the server name .. now I have a problem ... one line with the DBSS is correct in the cube and rest are all in correct when it writes in the cube ... excel 2003 .. I tried it from tm1 9.4.1 and 9.5.1 .. all have the same outcome that most of the numbers are incorrect in the cube , however, the spreadsheet has the correct number ...
In any case, if you are using DBS/DBSS/DBSW formulas to write to a cube, it's worth using the formula tracer in TM1 Tools to determine where the formula is writing to. If you get the "wrong" results it's almost certain that it isn't writing to where you think it's writing.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-
- Community Contributor
- Posts: 147
- Joined: Mon Nov 29, 2010 6:30 pm
- OLAP Product: Cognos TM1
- Version: 10.1
- Excel Version: Office 2010
Re: Writing Data from Excel to Tm1 Cube
For those without TM1 Tools, if you select the formula, click into the fx bar in Excel, doubleclick on the argument, and press F9, it will change the cell reference into the contained value.
-
- Posts: 18
- Joined: Wed Mar 30, 2011 1:51 am
- OLAP Product: TM1
- Version: 9.4
- Excel Version: 2003
Re: Writing Data from Excel to Tm1 Cube
Alan Kirk wrote:Are you saying that you're using a DBSS to write numbers? Because if you are, that won't work. If you aren't, please clarify exactly what you are doing.edward wrote:Thanks Guys it worked when I add the server name .. now I have a problem ... one line with the DBSS is correct in the cube and rest are all in correct when it writes in the cube ... excel 2003 .. I tried it from tm1 9.4.1 and 9.5.1 .. all have the same outcome that most of the numbers are incorrect in the cube , however, the spreadsheet has the correct number ...
In any case, if you are using DBS/DBSS/DBSW formulas to write to a cube, it's worth using the formula tracer in TM1 Tools to determine where the formula is writing to. If you get the "wrong" results it's almost certain that it isn't writing to where you think it's writing.
Hi Alan,
Yes DBSS is being used to write numbers. Is here any other way to use different function?
thanks
-
- Posts: 18
- Joined: Wed Mar 30, 2011 1:51 am
- OLAP Product: TM1
- Version: 9.4
- Excel Version: 2003
Re: Writing Data from Excel to Tm1 Cube
Hi Christopher,Christopher Kernahan wrote:For those without TM1 Tools, if you select the formula, click into the fx bar in Excel, doubleclick on the argument, and press F9, it will change the cell reference into the contained value.
The values are corrent inthe inputsheet and the value in the cube is not matching in the inputsheet.
Thanks
-
- Site Admin
- Posts: 6654
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Writing Data from Excel to Tm1 Cube
Have you taken a moment to read the entry on DBSS in the Reference Guide?edward wrote:Hi Alan,Alan Kirk wrote:Are you saying that you're using a DBSS to write numbers? Because if you are, that won't work. If you aren't, please clarify exactly what you are doing.edward wrote:Thanks Guys it worked when I add the server name .. now I have a problem ... one line with the DBSS is correct in the cube and rest are all in correct when it writes in the cube ... excel 2003 .. I tried it from tm1 9.4.1 and 9.5.1 .. all have the same outcome that most of the numbers are incorrect in the cube , however, the spreadsheet has the correct number ...
In any case, if you are using DBS/DBSS/DBSW formulas to write to a cube, it's worth using the formula tracer in TM1 Tools to determine where the formula is writing to. If you get the "wrong" results it's almost certain that it isn't writing to where you think it's writing.
Yes DBSS is being used to write numbers. Is here any other way to use different function?
(Or DBSW, but not DBSS.)This function sends a string to a cube of any number of dimensions. This function cannot send a numeric value to a cube. Use the DBS function to send numeric values.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
- Martin Ryan
- Site Admin
- Posts: 2000
- Joined: Sat May 10, 2008 9:08 am
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2010
- Location: Wellington, New Zealand
- Contact:
Re: Writing Data from Excel to Tm1 Cube
Did you notice that comment from Alan? That's probably your problem. You should be using dbsw or dbs.Alan Kirk wrote: Are you saying that you're using a DBSS to write numbers? Because if you are, that won't work.
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