TF34375 wrote:Thanks Duncan.... Actually I am a TM1 Admin... trying to get more into Development. I have worked on planning and creating Cubes/Dim, also worked on Rules.
But m new to TI loading.
I searched for the error that I am getting on IBM and other website.... but

....... np .... I was aware of using CellPutN (as also confirmed by other members).... just need to figure out how

thanks..
I'm not sure how you can be having a problem with CellPutN.
CellPutN is simply the TI equivalent of a DBS or DBSW formula in Excel; it's pretty much TM1 101.
The arguments that you pass to CellPutN are, in order (again exactly the same as a DBS):
- The value that you want to write to the cube;
- The name of the cube that you want to write to;
- The name of an element form each of the cube's dimensions, in order.
The value should be supplied by your data source. The name of the cube can be hard coded as a string. The names of the elements of the three non-measures dimensions should (normally) be supplied as part of your data source, in separate columns. These will then be the Variables shown on your Variables tab.
The variables that represent element names should be specified as having a Variable Type of String and a Contents value of Other. You then use those variables as arguments to your CellPutN formula, in the same way as cell references would typically be used in an Excel spreadsheet for a DBS or DBRW formula.
The Amount column will have a Variable Type of Numeric and a Contents Value of Other.
If your data source does not contain a column representing each of the three dimensions, you can hard code some of them.
If the source file contains nothing but sales, you could specify the fourth dimension as a string.
So if your file looked something like this (assuming that (for example only) Company, Department and Month were your three non-measures dimension):
Code: Select all
Company Department Month Amount
01 123 Jan 12 1000.00
01 124 Jan 12 1500.00
You would have the variables Company, Department, Month and Amount and your DBRW formula (on your Data tab) would look something like:
Code: Select all
CellPutN(Amount, 'MyCube', Company, Department, Month, 'Sales');
Note the single quotes around the cube name and measure (since they're fixed strings), but NOT around the variable names.