4. Approach

4.5. Multidimensional Model

In this stage we firstly describe the data source. The following points address the definition of the facts table, level of granularity, dimensions e the relational schema.

1) Data Source
All the data that is gathered to integrate the DW is coming from a transactional database, in SQL format, that supports the software application for treasury management and treasury operations. The only exception is the time table as explained later.

2) Fact table
As Figure 2 shows, the fact table contains the value date and account attributes (that form the primary key). It also contains attributes for the foreign keys from each of the dimension tables shown below, as well as quantitative attributes like account balances in euro and original currency of the transaction, and the working account balances in euro and in original currency.

3) Granularity
The maximum detail level of the fact table records corresponds to daily balance of each account, which results from the aggregation of all movements occurred in each day, for each account.

4) Dimension Tables
The defined dimension tables are: Companies, Banks, Accounts, Currencies, Countries and Time,

5) Relational Schema
The adopted schema, represented in the class diagram in Figure 2, is mapped in a star schema where each dimension table is directly connected to the fact table.

Figure 2. Class diagram of the DW

figure 2