Use case
This component can be used to simplify workflows that rely on identifying the start or end points of a time period or sequence of events. For example, you can use it to:- Group purchase data by customer, sort by purchase date, then use
Firstto find the details of each customer’s first purchase. - Group user logins by user, sort by most recent timestamp, then use
Lastto see when your users last logged in. - Group monthly inventory data by time period, then use two First/Last components to view your inventory levels at the start and end of each month.
Properties
A human-readable name for the component.
Defines how the input data is grouped. This works like an SQL GROUP BY statement. The first or last element of each group will be selected.To use grid variables, select the Use Grid Variable checkbox at the top of the dialog. For more information, read Grid variables.
- Input Column: The name of the column to use for sorting within the grouped data.
- Ordering: Specify how the selected column is sorted. Options are Ascending, Descending, Nulls First, or Nulls Last. For Google BigQuery, only Ascending and Descending are available.
- Column: The name of the input column to be passed to the output.
- First Last: Return the First or Last element of the chosen column in the grouped data.
First in each row. You can then selectively edit the list if required, but if you click Add all again it will return the list to the default fully populated state, removing any changes you have made.Click the Text mode toggle at the bottom of the dialog to open a multi-line editor that lets you add items in a single block. For more information, read Text mode.To use grid variables, toggle Use Grid Variable on at the bottom of the dialog. For more information, read Grid variables.Select whether to ignore null values. The default setting is No (do not ignore null values).
