senser_timeline_fmt: Retrieves a dataframe containing timeline data with a...

Description Usage Arguments Details Value Examples

View source: R/senser_timeline_fmt.R

Description

This function makes a REST POST call to q-risotto (the Qlik Sense REST API wrapper service) to retrieve data out of a Qlik Sense application. You will find more details about q-risotto here: https://github.com/ralfbecher/q-risotto

Usage

1
2
senser_timeline_fmt(host, port, app, hyperCubeDef, fields, tz = "UTC",
  format = "%d.%m.%Y")

Arguments

host

a URL where the q-risotto service runs, usually the Qlik Sense Desktop (localhost) or Server IP addresss

port

a port number where to connect q-risotto,

app

a Qlik Sense application name to connect, usually a GUID for applications on a Qlik Sense Server

hyperCubeDef

a list of dimensions (field names) and measure expressions (starting with '='), see q-risotto README for more details; the 1st field needs to contain the date/timestamp values

fields

a list of field names which will be assigned to the resulting vectors

tz

a timezone to convert the date/timestamp to (default "UTC")

format

a date/timestamp format to convert to (default )

Details

In the parameters, you define the Qlik Sense HyperCube by giving a set of dimensions and measure expressions (Qlik syntax). The HyperCube will then be created in the specified Qlik Sense application and the resulting data are retrieved completely by paging calls.

Value

a dataframe with timelines containing the resulting HyperCube data

Examples

1
2
3
4
5
6
7
8
## Not run: 
host <- "http://localhost"
port <- 3000
app <- "Helpdesk Management.qvf"
hyperCubeDef <- c("Date.autoCalendar.Date", "=Count( {$<[Case Is Closed] ={'True'} >} Distinct %CaseId )", "=Count( {$<[Status]={'New'} >} Distinct %CaseId )")
fields <- c("Date", "Closed Cases", "New Cases")
senser_data(host=host,port=port,app=app,hyperCubeDef=hyperCubeDef,fields=fields)
## End(Not run)

ralfbecher/senser documentation built on May 24, 2019, 8:55 a.m.