/
Tabulations
Tabulations
Overview
The tabulate method in Rich Data Services is available for users to create tabulations and aggregations of their data.
Supported Functions
The tabulate method supports the following functions for the measures.
ABS | AVG | COUNT | MAX | MIN | SQRT | STDDEV_POP | SUM | VAR_POP |
---|
Creating Tabulations
To create a tabulation we will need to specify our dimensions (the topics of interest) and measures (quantities being counted). The most basic tabulation would just be a count of the values for the dimension. We can do this by specifying the variables we want to use as dimensions with the dims parameter.
Basic Tabulationhttp://{host}/rds/api/catalog/test/view/tabulate?dims=var
To add a measure, add the measure parameter with a computed variable.
Basic Tabulationhttp://{host}/rds/api/catalog/test/view/tabulate?dims=var&measure=average:AVG(var2)
Multiple dimensions and measures can be added by using a comma separated list of variables for each
Multiple Dimensions and Measureshttp://{host}/rds/api/catalog/test/view/tabulate?dims=var1,var2&measure=avg:AVG(var3),avg2:AVG(var4)