Hi,
Below is the code i trying to load the data into Cube using TI and Cube view.
Steps followed:
1) Data source as Cube View
2) Created a cube view with all zero level dims(Dynamically - Prolog)
3) Data tab i have wrote below code to copy/load
4) CellgetN is using to get next week data and and CellputN is using to load the CellgetN data.
Really i am wondering after testing,the code is not working as expected
TI Code:
vMeasure='F_EOH Qty'
V_ABCMeasure = CellgetN('ABC',Product_Dim,ATTRS('Date_Dim', Date_dim , 'a_NEXT_WEEK_END_DT' ) ,Version,WSize_Dim,PTech_Dim,'QC_F_Qty');
CellPutN(V_ABCMeasure,'ABC',Product_Dim,Date_dim,Version,WSize_Dim,PTech_Dim,vMeasure);
Any pointers or suggestions are really appreciated.
Regareds,
Sathish
TI CellgetN and CellPUTN
-
- Posts: 38
- Joined: Mon Dec 20, 2010 5:02 am
- OLAP Product: Cognos TM1
- Version: 9.4 and 9.5
- Excel Version: 2003 and 2007
-
- Posts: 38
- Joined: Mon Dec 20, 2010 5:02 am
- OLAP Product: Cognos TM1
- Version: 9.4 and 9.5
- Excel Version: 2003 and 2007
Re: TI CellgetN and CellPUTN
Some more information:
TI Process running without any issues, the only problem data is not loading properly.
Any pointers would be really helpful to me.
Regards,
Sathish
TI Process running without any issues, the only problem data is not loading properly.
Any pointers would be really helpful to me.
Regards,
Sathish
-
- Regular Participant
- Posts: 424
- Joined: Sat Mar 10, 2012 1:03 pm
- OLAP Product: IBM TM1, Planning Analytics, P
- Version: PAW 2.0.8
- Excel Version: 2019
Re: TI CellgetN and CellPUTN
Looks like you are trying to copy from one measure to another within the same cube ABC,Screenshot of your variable tab would be helpful.Thanks
"You Never Fail Until You Stop Trying......"
-
- MVP
- Posts: 3229
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: TI CellgetN and CellPUTN
Did you use the function AsciiOutput or TextOutput in the Data tab of the process, to export variables to a text file?
If no text file is created, you know that something is wrong with the Data source (no data in the source, most probably).
Please check other topics here at the forum as this kind of error is frequently the cause of processes not running correctly.
If no text file is created, you know that something is wrong with the Data source (no data in the source, most probably).
Please check other topics here at the forum as this kind of error is frequently the cause of processes not running correctly.
Best regards,
Wim Gielis
IBM Champion 2024-2025
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-2025
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: 38
- Joined: Mon Dec 20, 2010 5:02 am
- OLAP Product: Cognos TM1
- Version: 9.4 and 9.5
- Excel Version: 2003 and 2007
Re: TI CellgetN and CellPUTN
Hi,
@BariAbdul:
Yes, I am trying to copy from one measure to another within the same cube ABC based on Dates.
Please find the attached variables screenshot and below Prolog Code for reference:
@Wim:
I will check as per your suggestion
##### Destroy the View and Subsets if exists #####
ViewDestroy('ABC','DefaultView_Measures_V2');
subsetDestroy('Product_Dim', 'Product_Dim_V2');
subsetDestroy('Date_dim', 'Date_dim_V2');
subsetDestroy('Version', 'Version_V2');
subsetDestroy('WSize_Dim', 'WSize_Dim_V2');
subsetDestroy('PTech_Dim', 'PTech_Dim_V2');
subsetDestroy('D_Measure', 'DefaultView_Measures_V2');
##### Create the Subsets and View #####
SubsetCreatebyMDX('Product_Dim_V2', '{TM1FILTERBYLEVEL( {TM1SUBSETALL( [Product_Dim] )}, 0)}');
SubsetCreatebyMDX('Date_dim_V2', '{TM1FILTERBYLEVEL( {TM1SUBSETALL( [Date_dim] )}, 0)}');
SubsetCreatebyMDX('Version_V2', '{TM1FILTERBYLEVEL( {TM1SUBSETALL( [Version] )}, 0)}');
SubsetCreatebyMDX('WSize_Dim_V2', '{TM1FILTERBYLEVEL( {TM1SUBSETALL( [WSize_Dim] )}, 0)}');
SubsetCreatebyMDX('PTech_Dim_V2', '{TM1FILTERBYLEVEL( {TM1SUBSETALL( [PTech_Dim] )}, 0)}');
SubsetCreatebyMDX('DefaultView_Measures_V2', '{TM1FILTERBYLEVEL( {TM1SUBSETALL( [D_Measure] )}, 0)}');
ViewCreate('ABC','DefaultView_Measures_V2');
##### Assign the Subsets to created View #####
ViewSubsetAssign('ABC','DefaultView_Measures_V2', 'Product_Dim', 'Product_Dim_V2');
ViewSubsetAssign('ABC','DefaultView_Measures_V2', 'Date_dim', 'Date_dim_V2');
ViewSubsetAssign('ABC','DefaultView_Measures_V2', 'Version', 'Version_V2');
ViewSubsetAssign('ABC','DefaultView_Measures_V2', 'WSize_Dim', 'WSize_Dim_V2');
ViewSubsetAssign('ABC','DefaultView_Measures_V2', 'PTech_Dim', 'PTech_Dim_V2');
ViewSubsetAssign('ABC','DefaultView_Measures_V2', 'D_Measure', 'DefaultView_Measures_V2');
Regards,
Sathish
@BariAbdul:
Yes, I am trying to copy from one measure to another within the same cube ABC based on Dates.
Please find the attached variables screenshot and below Prolog Code for reference:
@Wim:
I will check as per your suggestion
##### Destroy the View and Subsets if exists #####
ViewDestroy('ABC','DefaultView_Measures_V2');
subsetDestroy('Product_Dim', 'Product_Dim_V2');
subsetDestroy('Date_dim', 'Date_dim_V2');
subsetDestroy('Version', 'Version_V2');
subsetDestroy('WSize_Dim', 'WSize_Dim_V2');
subsetDestroy('PTech_Dim', 'PTech_Dim_V2');
subsetDestroy('D_Measure', 'DefaultView_Measures_V2');
##### Create the Subsets and View #####
SubsetCreatebyMDX('Product_Dim_V2', '{TM1FILTERBYLEVEL( {TM1SUBSETALL( [Product_Dim] )}, 0)}');
SubsetCreatebyMDX('Date_dim_V2', '{TM1FILTERBYLEVEL( {TM1SUBSETALL( [Date_dim] )}, 0)}');
SubsetCreatebyMDX('Version_V2', '{TM1FILTERBYLEVEL( {TM1SUBSETALL( [Version] )}, 0)}');
SubsetCreatebyMDX('WSize_Dim_V2', '{TM1FILTERBYLEVEL( {TM1SUBSETALL( [WSize_Dim] )}, 0)}');
SubsetCreatebyMDX('PTech_Dim_V2', '{TM1FILTERBYLEVEL( {TM1SUBSETALL( [PTech_Dim] )}, 0)}');
SubsetCreatebyMDX('DefaultView_Measures_V2', '{TM1FILTERBYLEVEL( {TM1SUBSETALL( [D_Measure] )}, 0)}');
ViewCreate('ABC','DefaultView_Measures_V2');
##### Assign the Subsets to created View #####
ViewSubsetAssign('ABC','DefaultView_Measures_V2', 'Product_Dim', 'Product_Dim_V2');
ViewSubsetAssign('ABC','DefaultView_Measures_V2', 'Date_dim', 'Date_dim_V2');
ViewSubsetAssign('ABC','DefaultView_Measures_V2', 'Version', 'Version_V2');
ViewSubsetAssign('ABC','DefaultView_Measures_V2', 'WSize_Dim', 'WSize_Dim_V2');
ViewSubsetAssign('ABC','DefaultView_Measures_V2', 'PTech_Dim', 'PTech_Dim_V2');
ViewSubsetAssign('ABC','DefaultView_Measures_V2', 'D_Measure', 'DefaultView_Measures_V2');
Regards,
Sathish
- Attachments
-
- TI CellPutN and CellGetN Issue.JPG (70.32 KiB) Viewed 6473 times
-
- Regular Participant
- Posts: 424
- Joined: Sat Mar 10, 2012 1:03 pm
- OLAP Product: IBM TM1, Planning Analytics, P
- Version: PAW 2.0.8
- Excel Version: 2019
Re: TI CellgetN and CellPUTN
I would go with Wim on this one,Please do asciioutput to ensure there are values to copy over.Thanks
"You Never Fail Until You Stop Trying......"
-
- Posts: 18
- Joined: Mon Aug 05, 2013 9:25 pm
- OLAP Product: TM1
- Version: 10.2.2
- Excel Version: 2010
Re: TI CellgetN and CellPUTN
Make sure you are using the created view as your datasource. Sometimes or most of the time I point to an existing view to get my variables but in the prolog i create a different view to be used.
use the following local variables to specifically designate your created view:
DatasourceNameForServer
DatasourceCubeview
use the following local variables to specifically designate your created view:
DatasourceNameForServer
DatasourceCubeview