transformations:aggregate
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
transformations:aggregate [2020/02/10 11:23] – dmitry | transformations:aggregate [2021/04/02 01:47] – 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á |
- | **Objective:** Find out the longest river on each continent. | + | **Action parameters:** |
- | **Transformation parameters:** | + | > |
+ | >Group by: Continent | ||
- | | + | **Output table:** |
- | * Aggregation: | + | |
- | | + | ^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 | ||
**Output table:** | **Output table:** | ||
- | ^ | + | ^Continent^Max of Length(km)^Count of River^ |
- | | Nile | | + | |Africa |
- | | Yangtze | + | |Asia | 6300| 3| |
- | | Mississippi | + | |North America |
- | | Amazon | + | |South America |
+ | |||
+ | |||
+ | \\ | ||
+ | =====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 " | ||
- | === Notes === | ||
- | The " | + | \\ |
+ | =====See also===== | ||
+ | * [[transformations: | ||
+ | * [[transformations: | ||
+ | * [[transformations: | ||
- | The " | ||
- | === See also === | ||
- | * [[transformations: | ||
- | * [[transformations: | ||
- | * [[transformations: |
transformations/aggregate.txt · Last modified: 2021/09/12 11:25 by craigt