queries:functions:pres

pres

The pres function can be used to read the result of the psum function for a single channel which comes from the experiment.

Return Type Number
Aggregates No
Flags None

Parameters

Parameters: pres(channel, psum_result)

Name Type Description
channel Number The channel is a number which an experiment is running on.
psum_result Binary The result which is returned by the psum function.

Example Queries

The following query draws the total amount of sessions on channel 1:

draw number using pres(1, result) as value from
(
  using
  psum(participation) as result from @sessions
) as p

IN THIS ARTICLE