User Tools

Site Tools


transformations:aggregate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
transformations:aggregate [2025/01/09 21:37] – revise to 2025 format craigttransformations:aggregate [2025/01/10 11:12] (current) craigt
Line 10: Line 10:
 =====Use cases===== =====Use cases=====
 Available aggregations: Available aggregations:
-  * Sum +  * Sum: generates the total of values. 
-  * Count +  * Count: generates the count of values. 
-  * Count only distinct values +  * Count only distinct values: generates the count of unique values. 
-  * Average +  * Average: generates the average of values. 
-  * Min +  * Min: generates the minimum of all values. 
-  * Max +  * Max: generates the maximum of all values. 
-  * Any +  * Any: returns the first value in the selected column. 
-  * Concatenate+  * Concatenate: combines all values into a single string, delimited by the selected character.
  
 \\  \\ 
Line 42: Line 42:
  
 ===Before (source table)=== ===Before (source table)===
-The longest rivers in the world 
- 
 ^ River  ^ Length(km)  ^ Continent  ^ ^ River  ^ Length(km)  ^ Continent  ^
 | Amazon  |  6400|South America  | | Amazon  |  6400|South America  |
Line 52: Line 50:
 | Paraná  |  4880|South America  | | Paraná  |  4880|South America  |
  
-===After (resulttable=== +===After (result table)=== 
-^Continent  ^Max of Length(km)  ^+^Continent  ^Length(km)  ^
 |**Asia**  |  **6300**| |**Asia**  |  **6300**|
 |**North America**  |  **6275**| |**North America**  |  **6275**|
Line 83: Line 81:
   * [[transformations:Rule|Rule]]   * [[transformations:Rule|Rule]]
   * [[transformations:slidingaggregation|Sliding aggregation]]   * [[transformations:slidingaggregation|Sliding aggregation]]
- 
  
transformations/aggregate.txt · Last modified: 2025/01/10 11:12 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki