ViewCreate with keeping consolidation for data transfer

Post Reply
lav4you
Posts: 52
Joined: Fri Jan 02, 2009 1:20 pm

ViewCreate with keeping consolidation for data transfer

Post by lav4you »

Hi All,

I have an interesting situation,
I want to transfer data between two cubes, Cube A and Cabe B.
Cube A has 8 dimensions and cube B has 10 dimension.
One twist here is Cube A(Source cube) has a dimension name Regions with Hierarchy of
Countries > City

Cube B has a Region_Consol dimension with only Countries.
Now I want transfer data between Cube A to Cube B with TI.

I am creating a temporary view using VIEWCREATE function. as this function by default has zero and consolidation suppressed. so this will not transfer data.
If I use ViewExtractSkipCalcsSet(Cube,ViewName,0) then consolidation from all dimensions get active and though data transfer is correct I will get an error message.

A simple way to avoid this is to create a temporary subset for all dimensions and assign to this Sourceview.

I feel its a bit lengthy code. Is there any other simple way to assign only particular dimnsion with consolidtion and rest with suppression on
looking for some shortcut from TM1 gurus ;) ..

Regards,
Lav
Wim Gielis
MVP
Posts: 3241
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: ViewCreate with keeping consolidation for data transfer

Post by Wim Gielis »

Hello

What error messsage do you see?

- You should use an MDX expression to have all level 0 elements for the 9 dimensions.
- And also an MDX expression to have all level 1 elements for that other dimension (Regions).

Then, as you did, do not skip the consolidated members.
AFAIK, there is no shorter method (unless you want to create a view manually and use that one - with all shortcomings of course).

Wim
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
lav4you
Posts: 52
Joined: Fri Jan 02, 2009 1:20 pm

Re: ViewCreate with keeping consolidation for data transfer

Post by lav4you »

Hi Wim,

Thanks for the quick reply.

I am getting an error message for all consolidated elements other than regions. Since these items do not have a match with target.
I have already included MDX query for Region dimension subset. the data transfer is absolutely fine

I was just looking for way to improvise and get rid of unnecessary codes to create Subset for other 7 dimensions.


Regards,
Lav
tomok
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: ViewCreate with keeping consolidation for data transfer

Post by tomok »

There are no shortcuts. If you decide you want consolidated elements from at least one of the dimensions (and thus turn off the suppression of those) then you have to explicitly select only leaf level elements in all the other dimensions (via a subset) if that's what you want.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
Post Reply