Description Usage Arguments Details Value Examples
View source: R/senser_timeline.R
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
1 | senser_timeline(host, port, app, hyperCubeDef, fields, tz = "UTC")
|
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") |
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.
a dataframe with timelines containing the resulting HyperCube data
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.