Icon

Discover KNIME Analytics Platform - Solution

This workflow accesses customer and transactions data, transforms the data and generates an interactive view with multiple visualizations.

This workflow accesses customer and transactions data, transforms the data and generates an interactive view with multiple visualizations.

Annotations and comments
  • Discover KNIME Analytics Platform An Introductory Workshop
  • Use Case Pauline from Sales would like to create a report and visualize the insights on the customer transaction data her team collects every month. This includes the total sales per customer, the basket size per customer and the average sales per customer group. Since Pauline receives the data from multiple sources each month, which needs blending, cleaning, and transformation before it can be put into a report, she has reached out to your data team for help to automate the process and thereby save time. Your project will be to help Pauline build a workflow to report the monthly insights, by completing each step of the process she repeats every month below.
  • Data Access Pauline receives the data from multiple sources, including different .xlsx, .csv and .table files. Your first task is to start building the workflow by accessing the different data sources.
  • Data Merging You can now help Pauline to merge the different data sources by stacking tables and matching or joining others to add the necessary columns.
  • Data Cleaning Now that the data access is established, Pauline asks your help in cleaning the data, since there seems to be missing values and some columns that are not needed.
  • Data Transformation & Filtering Next, you need to transform & filter the data. Pauline outlines how she normally transforms some of the data and what additional information is needed for the report.
  • Data Aggregation You have now reached the point where Pauline's data can be aggregated to get the necessary insight concerning the total spending and basket sizes for customers.
  • Data Visualization Now the data is ready to be visualized. Her team wants the insights visualized in an interactive dashboard.
  • Step 1: Access the Data from File(s) Read TransactionsOnline.csv with the CSV Reader node. Read TransactionsOnsite.table with the Table Reader node. Read CustomerInfo.xlsx with the Excel Reader node.
  • Step 2: Merge the Data Concatenate the two transaction tables with the Concatenate node. Append the customer information (in CustomerInfo.xlsx) with the Value Lookup node.
  • Step 3: Clean the Data Exclude the rows for which we don't have customer information (i.e., where CustomerID (#1) is missing) with the Missing Value node. Exclude the following columns using the Column Filter node: CustomerID (#1) FirstName LastName Country
  • Step 4: Transform & Filter the Data Connect the data to the Date&Time Processing metanode to: convert the date column from String to Date&Time format with the String to Date&Time node, filter the data to include only transactions from 2019-01-01 on using the Date&Time-based Row Filter node, extract the Year and the Quarter from the date column with the Extract Date&Time Fields node.
  • Step 5: Calculate Total Spending & Basket Size Calculate the Total Spending and Basket Size for each customer with the GroupBy node: Select CustomerID and CustomerGroup as groups Choose the following aggregation methods Sum of Price Unique Count of ProductNr
  • Step 6: Visualize the Data Visualize the data in an interactive dashboard: Plot Unique Items (unique count of ProductNr) and Total Spending (sum of Price) per Customer with a Scatter Plot node. Plot the average spending per customer group using the Bar Chart node (Category dimension: CustomerGroup; Aggregation: Average). (Optional) Add a Color Manager node to assign custom colors by column CustomerGroup. Place it after the GroupBy node. (Optional) Add a Text View node to add a title to your dashboard. Collapse everything into a component. You can arrange the layout via the Layout Editor (right click the component > Component > Open layout editor).
  • TransactionsOnline.csv
  • Keep only relevant columns
  • Combine transaction info top: Online Store bottom: Onsite Store
  • Orders after 01.01.2019
  • Extract Year & Quarter
  • Select column Date
  • CustomerInfo.xlsx
  • Groups: CustomerGroup, CustomerID Aggregation: sum of Price, unique count of ProductNr
  • Remove rows for which customer info is missing
  • Plot average sales by customer group
  • Plot Sum of Price and Unique Count of ProductNr
  • Report header
  • TransactionsOnsite.table
  • Add customer info

Nodes

Extensions

Links