transformations:aggregate
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
transformations:aggregate [2020/02/10 11:21] – dmitry | transformations:aggregate [2021/07/18 00:48] – craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Aggregate | + | {{ transformations: |
+ | ====== | ||
+ | Category: Transform / Basic\\ | ||
- | This transformation | + | \\ |
+ | =====Description===== | ||
+ | This action | ||
Available aggregations: | Available aggregations: | ||
Line 11: | Line 15: | ||
* Max | * Max | ||
* Any | * Any | ||
+ | * Concatenate | ||
- | EXAMPLE | + | \\ |
+ | =====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.| | ||
+ | You can aggregate more columns by the selected //Group by// columns by using the //Aggregate by more columns// option. | ||
+ | |||
+ | The output of this action is a dataset containing the "Group by" column, plus an additional column for each aggregation chosen.\\ | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | **Example 1:** Find out the longest river on each continent. | ||
**Source table:** The longest rivers in the world | **Source table:** The longest rivers in the world | ||
- | ^ River ^ Length(km) | + | ^ River ^ Length(km) |
- | | Nile | 6650 | Africa | + | | Nile | 6650|Africa |
- | | Amazon | + | | Amazon |
- | | Yangtze | + | | Yangtze |
- | | Mississippi | + | | Mississippi |
- | | Yenisei | + | | Yenisei |
- | | Yellow River | 5464 | Asia | | + | | Yellow River | 5464|Asia |
- | | Ob | 5410 | Asia | | + | | Ob | 5410|Asia |
- | | Paraná | + | | Paraná |
+ | \\ | ||
+ | **Action parameters: | ||
+ | > | ||
+ | >Group by: Continent | ||
+ | \\ | ||
+ | **Result table:** | ||
+ | ^Continent | ||
+ | |Africa | ||
+ | |Asia | 6300| | ||
+ | |North America | ||
+ | |South America | ||
- | **Objective:** Find out the longest river on each continent. | + | \\ |
+ | \\ | ||
+ | **Example 2:** Find out the longest river, and the number of rivers, | ||
- | **Transformation | + | **Source table:** Same source table as Example 1.\\ |
+ | \\ | ||
+ | **Action | ||
+ | > | ||
+ | > | ||
+ | >Group by: Continent | ||
+ | \\ | ||
+ | **Result table:** | ||
+ | ^Continent^Max of Length(km)^Count of River^ | ||
+ | |Africa | ||
+ | |Asia | 6300| 3| | ||
+ | |North America | ||
+ | |South America | ||
- | | + | \\ |
- | * Aggregation: Max | + | ====Community examples==== |
- | * Group by: Continent | + | |
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
- | **Output table:** | + | \\ |
+ | =====Shortcuts===== | ||
+ | Fast ways to create the action:\\ | ||
+ | | ||
+ | | ||
- | ^ River ^ Continent | ||
- | | Nile | Africa | ||
- | | Yangtze | ||
- | | Mississippi | ||
- | | Amazon | ||
- | === Notes === | + | \\ |
+ | =====See also===== | ||
+ | * [[transformations: | ||
+ | * [[transformations: | ||
+ | * [[transformations: | ||
- | The " | ||
- | The " |
transformations/aggregate.txt · Last modified: 2021/09/12 11:25 by craigt