transformations:aggregate
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
transformations:aggregate [2020/02/10 11:23] – dmitry | transformations:aggregate [2021/09/12 11:25] (current) – [Action settings] 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.| | ||
+ | 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. | ||
- | **Source table: | + | 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 | ||
- | ^ River ^ Length(km) | + | \\ |
- | | Nile | 6650 | Africa | + | |
- | | Amazon | + | =====Examples===== |
- | | Yangtze | + | |
- | | Mississippi | + | **Example 1:** Find out the longest river on each continent. |
- | | Yenisei | + | |
- | | Yellow River | 5464 | Asia | | + | **Source table:** The longest rivers in the world |
- | | Ob | 5410 | Asia | | + | |
- | | Paraná | + | |
- | **Objective:** Find out the longest river on each continent. | + | ^ 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 | ||
- | **Transformation parameters:** | + | \\ |
+ | \\ | ||
+ | **Example 2:** Find out the longest river, and the number of rivers, on each continent. | ||
- | | + | **Source table:** Same source table as Example 1.\\ |
- | * Aggregation: | + | \\ |
- | | + | **Action parameters: |
+ | >Calculate: Length(km), Aggregation: | ||
+ | > | ||
+ | >Group by: Continent | ||
+ | \\ | ||
+ | **Result table:** | ||
+ | ^Continent^Max of Length(km)^Count of River^ | ||
+ | |Africa | ||
+ | |Asia | 6300| 3| | ||
+ | |North America | ||
+ | |South America | ||
- | **Output table:** | + | \\ |
+ | ====Community examples==== | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | * [[https:// | ||
- | ^ River ^ Continent | + | \\ |
- | | Nile | Africa | + | =====Shortcuts===== |
- | | Yangtze | + | Fast ways to create the action:\\ |
- | | Mississippi | + | |
- | | Amazon | + | |
- | === Notes === | ||
- | The " | + | \\ |
+ | =====See also===== | ||
+ | * [[transformations: | ||
+ | * [[transformations: | ||
+ | * [[transformations: | ||
- | The " | ||
- | === See also === | ||
- | * [[transformations: | ||
- | * [[transformations: | ||
- | * [[transformations: |
transformations/aggregate.1581351797.txt.gz · Last modified: 2020/02/10 11:23 by dmitry