Is there a way to extract view from cube in TI?

Post Reply
dharav
Regular Participant
Posts: 193
Joined: Wed Apr 02, 2014 6:43 pm
OLAP Product: TM1
Version: 10.2
Excel Version: 2010

Is there a way to extract view from cube in TI?

Post by dharav »

Hello All

I want to know is there a way to extract a view from the cube? I am not asking if there is a view than i can export through asciioutput. I want to extractview from the cube itself without creating any views. We can do manually this by right clicking on the cube and click export data that would open the View Extract window.Now we can extract all cube data in to it if we do not select any views in it. I want to achieve same thing but couldn't able to go through. Is there a function which creates the cube view of all elements in the TI Process? I was looking for viewextract function if it is there, in the reference book 10.1.

Thank You
Dharav
Wim Gielis
MVP
Posts: 3240
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: Is there a way to extract view from cube in TI?

Post by Wim Gielis »

No, it's not possible. It just works with views, full stop.

PS: can you please change your usage of the expression: "I couldn't able". In all of your posts you write that ;-) It should be: "I couldn't be able". Thanks for consideration.
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
lotsaram
MVP
Posts: 3706
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Is there a way to extract view from cube in TI?

Post by lotsaram »

dharav wrote:Hello All

I want to know is there a way to extract a view from the cube? I am not asking if there is a view than i can export through asciioutput. I want to extractview from the cube itself without creating any views. We can do manually this by right clicking on the cube and click export data that would open the View Extract window.Now we can extract all cube data in to it if we do not select any views in it. I want to achieve same thing but couldn't able to go through. Is there a function which creates the cube view of all elements in the TI Process? I was looking for viewextract function if it is there, in the reference book 10.1.

Thank You
Dharav
Read what you wrote, then read it again. If you're not confused afterwards there you should be. Or at the very least you were confused when you wrote it.

I think what you actually want IS in fact ViewCreate. By default when a view is created and subsets are yet to be assigned for any dimensions the subset is the implicit 'ALL' subset. Thus a newly created view is not "empty" as I think you have assumed but is actually for the whole cube. Which is what you want right?

I would have thought all tm1 developers would know this, or at least should know this!
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
dharav
Regular Participant
Posts: 193
Joined: Wed Apr 02, 2014 6:43 pm
OLAP Product: TM1
Version: 10.2
Excel Version: 2010

Re: Is there a way to extract view from cube in TI?

Post by dharav »

@ Wim:

Thanks for suggestion and It will be implemented.


@ lotsaram:

I am sorry for it.

Thanks for your input though my question was: can we export cube data without views through TI process/es?

I don't think so we can. I just wanted to confirm it.

We can export manually through view export wizard without creating any cube view. So I got curious to know can we do it same through TI ?

I know the concepts of views and exporting data through it.

Thank you guys for your inputs. Appreciated.

Dharav
lotsaram
MVP
Posts: 3706
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Is there a way to extract view from cube in TI?

Post by lotsaram »

dharav wrote:Thanks for your input though my question was: can we export cube data without views through TI process/es?

I don't think so we can. I just wanted to confirm it.

We can export manually through view export wizard without creating any cube view. So I got curious to know can we do it same through TI ?

I know the concepts of views and exporting data through it.
Well no actually you can't. Although you can manually export a view extract (notice how it's called a view extract, there's a hint there somewhere) without actually selecting or creating a view, if you leave the selection blank then the selected view is in fact a slice of the whole cube with the implicit subset All selected for each dimension. You achieve the same in TI by creating a view but assigning no subsets. Exact same thing, it just requires the creation of an object. (Why this is required of views but not of subsets is however a good point, maybe someone has some insight into that but its beyond my pay grade.)

In terms of your question "can we export cube data without views through TI process/es?" the answer is "Yes of course you can". Just have a think. Regardless of ETL tool in order to export data you need to iterate over a collection, a set, an array or a something. Well in TM1 that something is generally a view. It is the most efficient something. But you could program a series of dimension or subset nested while loops to iterate over a set of cube cells and export data that way. To do so is however generally not efficient as there is no concept with this method of suppressing null values and so there is much more work to do which is why a view is how it's done.
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
BrianL
MVP
Posts: 264
Joined: Mon Nov 03, 2014 8:23 pm
OLAP Product: TM1
Version: 9.5.2 10.1 10.2 PA2
Excel Version: 2016

Re: Is there a way to extract view from cube in TI?

Post by BrianL »

FWIW: The View Extract functionality in architect/perspectives actually DOES create a view. You can see this by enabling TM1.API=DEBUG in the tm1s-log.properties file and performing the task in the client. You'll see ViewCreate, ViewExtractCreate, and then ObjectDestroy on the view. All showing that a temporary view is being created for you.
dharav
Regular Participant
Posts: 193
Joined: Wed Apr 02, 2014 6:43 pm
OLAP Product: TM1
Version: 10.2
Excel Version: 2010

Re: Is there a way to extract view from cube in TI?

Post by dharav »

Thank you guys for conceptual explanation. it helps. Appreciate it
Post Reply