tm1_get_data: TM1 Get Data from a Cube

Description Usage Arguments Examples

View source: R/tm1_get_data.R

Description

Gets data from a cube, Supports up-to 10 dimension for now

Usage

1
2
3
4
5
6
tm1_get_data(tm1_connection, cube,
            element1="", element2="",
            element3="", element4="",
            element5="",element6="",
            element7="", element8="",
            element9="", element10="")

Arguments

tm1_connection

tm1 connection object returned by the function tm1_connection

cube

Name of a cube as a string

element1

Element from 1st dimension of cube. Leave empty if there is no corresponding dimension

element2

Element from 2nd dimension of cube. Leave empty if there is no corresponding dimension

element3

Element from 3rd dimension of cube. Leave empty if there is no corresponding dimension

element4

Element from 4th dimension of cube. Leave empty if there is no corresponding dimension

element5

Element from 5th dimension of cube. Leave empty if there is no corresponding dimension

element6

Element from 6th dimension of cube. Leave empty if there is no corresponding dimension

element7

Element from 7th dimension of cube. Leave empty if there is no corresponding dimension

element8

Element from 8th dimension of cube. Leave empty if there is no corresponding dimension

element9

Element from 9th dimension of cube. Leave empty if there is no corresponding dimension

element10

Element from 10th dimension of cube. Leave empty if there is no corresponding dimension

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
tm1_get_data(
  tm1_connection("localhost", "8881", "admin", "apple"),
  "SalesCube", "Actual", "Argentina", "Total", "Sales", "Jan")

con_obj <- tm1_connection("localhost", "8881", "admin", "apple")
tm1_get_data(con_obj, "SalesCube", "Actual", "Argentina", "Total", "Sales", "Jan")

## End(Not run)

tm1r documentation built on Dec. 15, 2020, 5:36 p.m.