transformations:aggregate
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
transformations:aggregate [2015/04/10 14:04] – elenap | transformations:aggregate [2024/06/12 21:55] (current) – [See also] craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Aggregate | + | {{ transformations: |
+ | ====== | ||
+ | Category: Transform / Basic\\ | ||
- | This transformation | + | \\ |
+ | =====Description===== | ||
+ | This action | ||
Available aggregations: | Available aggregations: | ||
Line 10: | Line 14: | ||
* Min | * Min | ||
* Max | * Max | ||
+ | * Any | ||
+ | * Concatenate | ||
+ | |||
+ | \\ | ||
+ | =====Action settings===== | ||
+ | ^Setting^Description^ | ||
+ | |Calculate|Select the column in which the values will be aggregated.| | ||
+ | |Aggregation method|Select the aggregation method to be used on the values in the chosen column.| | ||
+ | |Group by|Select the column(s) in which the grouping of values will drive the aggregation.| | ||
+ | More than one aggregated column can be created by clicking the //Aggregate by more columns// option and selecting the additional column and aggregation to apply. | ||
+ | |||
+ | The output of this action is a dataset containing the "Group by" column, plus an additional column for each aggregation chosen.\\ | ||
+ | \\ | ||
+ | ====Concatenate settings==== | ||
+ | ^Setting^Description^ | ||
+ | |Separator|Select the character (delimiter) that will appear between the concatenated values. | ||
+ | |Distinct|When checked, only unique values in the aggregated column will be included in the concatenation.| | ||
+ | |||
+ | \\ | ||
+ | |||
+ | =====Examples===== | ||
+ | |||
+ | **Example 1:** Find out the longest river on each continent. | ||
+ | |||
+ | **Source table:** The longest rivers in the world | ||
+ | |||
+ | ^ River ^ Length(km) | ||
+ | | Nile | 6650|Africa | ||
+ | | Amazon | ||
+ | | Yangtze | ||
+ | | Mississippi | ||
+ | | Yenisei | ||
+ | | Yellow River | 5464|Asia | ||
+ | | Ob | 5410|Asia | ||
+ | | Paraná | ||
+ | \\ | ||
+ | **Action parameters: | ||
+ | > | ||
+ | >Group by: Continent | ||
+ | \\ | ||
+ | **Result table:** | ||
+ | ^Continent | ||
+ | |Africa | ||
+ | |Asia | 6300| | ||
+ | |North America | ||
+ | |South America | ||
+ | |||
+ | \\ | ||
+ | \\ | ||
+ | **Example 2:** Find out the longest river, and the number of rivers, on each continent. | ||
+ | |||
+ | **Source table:** Same source table as Example 1.\\ | ||
+ | \\ | ||
+ | **Action parameters: | ||
+ | > | ||
+ | > | ||
+ | >Group by: Continent | ||
+ | \\ | ||
+ | **Result table:** | ||
+ | ^Continent^Max of Length(km)^Count of River^ | ||
+ | |Africa | ||
+ | |Asia | 6300| 3| | ||
+ | |North America | ||
+ | |South America | ||
+ | |||
+ | \\ | ||
+ | ====Community examples==== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | \\ | ||
+ | =====Shortcuts===== | ||
+ | Fast ways to create the action:\\ | ||
+ | *Right-click on a column heading, and select " | ||
+ | *Click the drop-down arrow in a column heading and select " | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====See also===== | ||
+ | * [[transformations: | ||
+ | * [[transformations: | ||
+ | * [[transformations: | ||
+ | * [[transformations: | ||
transformations/aggregate.txt · Last modified: 2024/06/12 21:55 by craigt