Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Overview
Performs basic statistical analysis on values in a Collection of items.
Info |
---|
This supplier takes a quoted keychain which will usually point to a number, date, or other 'comparable' value, and processes each item |
...
. This results in a Stats report that lets you access the results, such as the sum, average, min, max, etc. Also, see |
...
the grouping- |
...
reporter macro for more complex options. |
Details
Name: | Stats On Supplier |
---|---|
Prefix: | stats-on(required) |
Supported Content: | Anything, but Collections will be the most effective. |
Provided By: |
|
Supported Keys
The following is the list List of keys which that this supplier will return returns a value for.
Key | Content Types | Return Type | Description | ||
---|---|---|---|---|---|
"prefix:key > prefix:key" | Anything | Stats | The quoted keychain to perform analysis on.
|
Examples
Average Versions Per Page
This will output Outputs the average number of versions for each child page of the parent page.
Instructions
...
create a Report Info macro
...
insert the following for the Key parameter
...
page:children > stats-on:"page:version history > collection:size" > stats:value average
...
insert a parent page for the Source parameter
...
In our example, we used the List of Suppliers page.
Result
List of Suppliers: 5.761904761904762
Things to Note
...
the example started with a collection
...
- page:children
...
"page:version history > collection:size" is in quotes
...
Info |
---|
Quotes are used so that that 'stats' keychain gets passed into the 'stats-on' supplier, and |
...
does not become part of the main keychain. |
...
after the
...
stats-on
...
section
...
we continue to the Stats Supplier to retrieve the value we're after
...
Info |
---|
In this case this value is 'value average', which is the average of all non-blank values |
...