Now you will create a filter transform that only contains the top five states with the strongest sales.
Perform the following steps to create a transform that will filter the data appropriately:
- Click Pipeline.
The getting_started connection, the states feed, and the region_summary transform are displayed in the pipeline. - Click the gear icon button in the states feed box.
- Select +, and then New Transform.
A pop-up for choosing a transform type is displayed. - In the pop-up, select Filter.
A new page is displayed. - In Transform Name, enter Top 5 States.
- Turn the Enable Server Subscription toggle in order for data for this transform to be continually fetched, updated, and cached.
- Click Next.
You are taken to the Attributes tab. - On the Attributes tab, remove all attributes except for State and TotalSales by selecting the attributes and clicking Remove Attribute.
- Click Next.
You are taken to the Filter tab. No changes are needed here, so click Next to proceed. - On the Row Limit tab, enable the Row Limit toggle to limit the result to the specified number of records.
A new field is displayed. - In Row Limit, enter 5 and click Next.
- On the Sort tab, click + Add Sort to add a row.
A new row is displayed. - From the drop-down, select TotalSales, and in Sort By, select Descending.
- Click Next.
You are taken to the Upstream Variables tab. No changes are needed here, so click Next to go to Preview. On the Preview tab, you can observe the table showing the total sales for the top 5 states in descending order. - Click Save and Close.
The newly created filter transform is displayed in the pipeline.
Summary
You have connected to some sample data and created three different views of the data that can now be used in edgeCore. In the next exercise, you will create three types of visualizations that will present these data sets in meaningful ways to the user.
For more information on Transforms, refer to the corresponding chapter.