Table of Contents |
---|
Listing of Data Warehouse Tables
DIM |
| FACT |
| HIST |
| DW |
|
| PPI |
|
| STG | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
Dimension modelling reference tables |
| Dimension modelling fact tables |
| Daily balance tables derived from Data Warehouse fact tables. |
| Lookup tables copied from mifos OLTP data. |
|
|
|
|
| Staging tables. Not used for reporting. | ||||
dim_date |
| fact_loan_disbursals |
| hist_loan_balances |
| dw_account_action |
|
| dw_ppi_survey |
|
| stg_personnel_names_and_name_changes | ||||
dim_product |
| fact_loan_repayments |
| hist_loan_arrears |
| dw_currency |
|
| ppi_category_likelihood_bands |
|
| stg_customer_and_account_updates | ||||
dim_office |
| fact_loan_fees_and_charges |
| hist_savings_balances |
| dw_fee |
|
| fact_ppi_survey_results |
|
| stg_customer_type1_columns | ||||
dim_personnel |
| dw_loan_schedules fact_customer_fees_and_charges |
|
|
| dw_fund |
|
|
|
|
| stg_loan_type1_columns | ||||
dim_customer |
| fact_savings_transactions |
|
|
| dw_mfi_configuration |
|
|
|
|
|
| ||||
dim_loan |
| fact_savingsclient_transactions attendances |
|
|
| Lookup tables for Data Warehouse convenience |
|
|
|
|
| stg_etl_run_history | ||||
dim_savings |
| Schedule tables cut down and copied to Data Warehouse to allow some processing of Due Vs Collected type functionality |
|
|
| dw_account_charge_type |
|
|
|
|
|
| ||||
|
| fact dw_customer_fees_and_charges loan_schedules |
|
|
| dw_arrears_band_monthly |
|
|
|
|
|
|
|
|
|
|
|
| fact dw_loan_clientfee_attendances schedules |
|
|
| dw_arrears_band_weekly |
|
|
|
|
|
|
|
| ||
|
| dw_customer_schedules |
|
|
|
|
|
|
|
|
|
| ||||
|
| dw_customer_fee_schedules |
|
|
|
|
|
|
|
|
|
|
WIP: Items below to be updated to match the table listing above
DIM Tables
FACT Tables
HIST Tables
The following 'hist' tables hold daily balances for 'active' accounts and are derived from other data warehouse tables. These tables do increase the size of the data warehouse database substantially but offer improved performance and simpler querying.
hist_loan_balances and hist_loan_arrears provides the simplest and quickest way of identifying PAR values at MFI, branch, loan officer, center and groups levels at any point in time.
hist_loan_balances | Contains daily balances for 'active' loan accounts (good and bad standing status's). Doesn't included reversed transactions as they affect the 'as of' situation.
| ||
hist_loan_arrears | Contains daily balances for over due loans (hist_loans_overdue is a more correct table name). | ||
hist_savings_balances | Contains daily balances for 'active' savings accounts (active and inactive status's). |
DW Tables
PPI Tables
STG Tables
DW Picture
Overview - Dimension tables surrounding fact tables
A representation (slightly out of date) of how DW 1.0 solves the gnarly aspect of reporting on transaction totals and arrears aging information at MFI/Branch/Loan Officer/Center levels on current and historical date ranges is ...
Star Schema Involving fact_loan_repayments
A representation of how reporting on loan repayments at MFI/Branch/Loan Officer/Center levels on current and historical date ranges is generally is solved by DW 1.0 is ...
Metrics Reporting
A representation of how DW 1.0 solves reporting on 'metrics' at MFI/Branch/Loan Officer/Center levels on current and historical date ranges is ...
(put dim hierarchy piccy here)
High level DW table Info
These tables are currently deployed and being road tested during report development on the development reporting sandbox. Access to this box is restricted but for those with access... the database is called mifos_secdep_dwh and early (poorly presented by me) reports are running from sandbox-reporting.mifos.org/pentaho/Home under the solutions directory JPWWIP/DW standard reports.
...
Table Name | Description | ETL Approach |
|
---|---|---|---|
dw_mfi_configuration | currently contains: | Loaded from prd_type mifos table |
|
dw_loan_schedules | loan schedule details (was a 'fact' table but decided against that as found it very hard to keep schedule entries tracked to the dim_loan entries. | Transactions simply extracted from mifos equivalent. Only links to the loan_account_id not a specific entry in dim_loan. Need to be updated if the schedule dates change (if disbursed on a date different to the expected date). |
|
dw_account_charge_type | Indicates the type of fee...charge/fee/penalty - use on the fee transaction tables | preloaded with DW. |
|
...