Datasets and data sources
Last updated
Was this helpful?
Last updated
Was this helpful?
A dataset is built based on at least one data source, and optional and processed for visualisation in .
You can retrieve data from the following data sources :
data cube
data cube
data cube
data cube
Depending on the query you run and the transformations you apply, you can build different types of datasets. Here is a recap of which datasets are created from which data sources and transformations and the available visualisations for each.
Single number
Queries
Transformations
None
Charts
Transformations
Key / value
Queries
Transformations
Charts
Transformations
Key / value / buckets
Queries
Transformations
None
Charts
Transformations
Key / values
Queries
None
Transformations
Charts
Transformations
Here is an example dataset with only one data source, that returns a number :
Key / value datasets also come from transformations like to-list
, to create a list from multiple numbers. You can note the series_title
property that gives you control over the title that will be displayed in tooltips and legends.
The join
transformation with multiple key / value datasets with common keys creates a single dataset with multiple values associated with each key.
A dataset is formed with a tree of data sources and transformations chained.
series_title
propertyAll data sources have a series_title
property. This is useful when combining multiple sources together to set the title associated with each source. This will be reflected in tooltips and legends. Here is an example of a Datamart
and a Segment
data sources combined together.
datamart_id
propertyAll data sources have a datamart_id
property allowing you to specify the datamart on which to run the query. It defaults to current datamart. This allows you to bring data for an other datamart or to create a dashboard at the community level that aggragates data from sub organisations.
The user loading the dashboard should have the permissions to query the specified datamart or the chart will throw an error for this user.
adapt_to_scope
propertyBy defaults, all data sources will try to adapt to the page on they are executed, with the adapt_to_scope
property set to TRUE
.
The goal is to :
Filter data for the current segment when a dashboard is displayed on a segments page
Filter data based on the current query when a dashboard is displayed on a builder.
For OTQL data sources :
On home
scopes, nothing is changed and the query is run as is.
On segments
scopes, the current segment's query is added at the end of the OTQL query. That means that only OTQL queries FROM UserPoint
will adapt to the scope.
On builders
scopes, the current query selected in the builder is added at the end of the OTQL query. That means that only OTQL queries FROM UserPoint
will adapt to the scope.
For activities analytics data sources :
On home
and builders
scopes, nothing changes and the query is run as is.
On segments
scopes, activities are filters so that only those of users that were in the segment while having the activity will be kept.
without dimensions
without dimensions
queries with dimensions
queries with dimensions
queries with multiple dimensions
queries with multiple dimensions
You can build the same kind of dataset with a different data source, like :
Use this type of dataset in charts to display a single number.
Queries in the preceding paragraph were only returning numbers, but you can build key / value datasets with more complex queries like and .
You can pass this kind of dataset in , and charts to visualize the content.
You can go further by adding up to three levels of buckets in your dataset with and .
This can then be displayed with and charts, with drill down or multiple / stacking bars.
The two groups can be displayed together in and charts to efficienly compare their data.
To learn about OTQL queries, go to .
To learn about activities analytics queries, go to .
To learn about collection volumes queries, go to .
For a list of available transformations, see .