Data Extraction Example
In this example, you will create a workbook, set up a data extraction, and format and use the data extraction to show the top 5 customers for a specific year (using a Sage X3 template). Finally, you'll create a bar chart to visualize the results.
Create and set up your workbook
- On the Workbooks tab, right-click and select New Workbook from the context menu.
- Enter
Yearin cell A1 and2017in cell B1. - Enter
Monthin cell A2 and4in cell B2.
Set up the data extraction
- Select an empty cell.
- On the Analysis tab, select Data Extraction Wizard.
- From the Data Model dropdown menu, select Invoice Analysis.
- Name the data extraction SalesReport.
- On the Fields tab, add the following fields to the data extraction (use the search bar if needed):
- Customer Code
- Customer Name
- Ledger Currency Amount (SUM)
- Ledger Currency Cost (SUM)
- Ledger Currency Margin Amt (SUM)
- Select Create.
The output appears on Sheet1. The header is visible, the total row is hidden.
The result is grouped by Customer Code and Customer Name. Ledger Currency Amount, Ledger Currency Cost, and Ledger Currency Margin Amount are aggregated using SUM. - Select any cell in the extraction table, then re-open the Data Extraction Wizard.
- In the Filters tab, click Add Filter, then configure the following:
- Year – Select cell B1.
- Month – Select cell B2.
- Select Update to apply the filters. Then change the Month value in cell B2 to
2018.
The data extraction refreshes automatically.
Format and use the data extraction
- Select the data extraction table, then open the Table Design tab from the ribbon.
- Choose a formatting style for the table.
- Right-click the last column, select Insert, then choose Table Columns to the Right.
- Rename the new column to Margin Percentage.
- In the first row, enter the formula:
Ledger Currency Cost/Ledger Currency Amount. - Format the Margin Percentage column as a percentage:
Select the first cell in the column. On the Home tab, in the Numbers section, select Percentage from the dropdown menu. - Bold the first data value in both the Customer Code and Customer Name columns.
- Format the following columns as Accounting.
On the Home tab, in the Numbers section, select Accounting from the dropdown menu.- Ledger Currency Amount
- Ledger Currency Cost
- Ledger Currency Margin Amt
- With the table still selected, open the Analysis tab and select Refresh Selection under Refresh.
- Still with the table selected, select Data Extraction Wizard.
- In the Options section, set Top X to
5, then select Update.
The top 5 customers for the selected year and month appear.
Turn your results into a bar chart
- Select the Customer Name and Ledger Currency Amount columns.
- On the Insert tab, and select Charts.
- In the Insert Chart dialog, choose Bar, and format the chart as needed.
Now you have a visual representation based on your data extraction. The chart will update automatically when you change the filter.