A Datamart is essentially a way to join the two or more sets of data to allow you to run queries, set prices, create charts, and optimize your pricing across both sets of data.
Datamart is a Pricefx virtual table that can combine different data sources and it is an important element for variety of the analysis in Pricefx.
Go to Analytics > Data Manager > Datamart from the main menu.
The system displays the available Datamarts to reuse or update.
Today you need to create your own Datamart for further sales performance evaluation. You will use the sales transactional data as your data source for this exercise.
To create a new Datamart:
Click on the “Add Datamart” button on the top right corner.
The dialogue window will open. Type in the name (StudentX) and label of the Datamart. Click on the “Add” button.
The system will display a green confirmation message on the top of the screen. Once it has been successfully created, review the Datamart by clicking on it.
You will need to choose the main data source base of which Datamart will be built in the Options menu. In your case it is TXStandardData (DS), select it and click on Confirm the button on the confirmation message.
Label – allows the user to set a Datamart label/name.
Source – allows the user to choose a Data Source from which the data will be pulled.
Normalization – you can decide whether you prefer quicker Datamart queries or refreshes. This option allows you to copy more fields to the DM table to speed up queries at the expense of DM refresh performance or vice versa.
Base Currency – allows the user to set the base currency for this Datamart.
Base UOM – allows the user to set the base unit of measure for the Datamart.
To combine different sources besides Transaction data you will need to add “Customer Id” and “Product Id” from the field picker to the Datamart by checking the box to those 2 fields in the field picker menu and selecting “Add to fields” button (you can navigate through the existing fields, by scrolling down through the list).
Once the previous action has been accomplished, you will be able to see more fields in the field picker from other Data Sources, e.g. Product and Customer (pages at the bottom are added). Selected fields are added to the Datamar
From the Customer DMDS source you need to pick (check the box) the following fields: Customer Name, Country, Industry, Region, and Customer Group.
From the Product DMDS source: select Product Group.
From TX DMDS source: select Global List Price, Gross Margin, Cost, Promotion Discount, Invoice Price, Local List Price, Net Price, and Quantity.
Click on the Add to Fields button after every field selection.
You can see how the selected fields are displaying on the right side as you add them together
You will add 1 more field to the Datamart by typing a formula to store the margin. Click on the “Add Field” button (top left corner).
Enter the following data and click on the button.
Data Type: Money
Name: Margin
Label: Margin
Expression: InvoicePrice-Cost
The new field is added to the Datamart (at the bottom of the list):
Now you are ready to save the new Datamart into the Analytics server. Select “Deploy” on top right corner
In the opened pop-up window, you will see all the fields that will be written into the Datamart. Select “Deploy” button again. Click “OK” in the confirmation message
The system will display a list with all the fields already defined in the Datamart.
You need to make sure that it has all relevant data rows from other data sources. To assure that go to Analytics > Data Manager > Data Loads from the main
In the list of different data sources, scroll down and look for your latest created Datamart with DM.StudentX (you can use the Label field to search for it). Click on the one with the column Type = Refresh.
In the left side on the Options area, uncheck the “Incremental” check box, which is used for partial calculation.
Click on the “Run Data Load” button. Click on the OK button on the confirmation message.
Go back to Data Loads and review Start Date and End Date time stamps. This will indicate whether the calculations are finished.
Click on the Refresh button until the Data Load is with status “Ready” to be used.
Now you need to verify whether the data has been loaded into the Datamart. Go back to Datamart and check the column “#Rows”.
Select the Datamart and verify the data is loaded in the Data tab.