← Back to Dashboard

Financial Analysis Dashboard Documentation

Overview

This dashboard provides comprehensive financial analysis with multi-level drill-down capabilities from groups to individual accounts, with full accounting transparency where everything must balance.

Database Architecture

Core Tables

Critical Views

For Historical Analysis

For Financial Calculations

Data Integrity Issues Resolved

1. Duplicate Accounts

Problem: Multiple ownership records created duplicate financial entries

Solution: GROUP BY account_code with SUM() aggregation

2. Owner Name Variations

Problem: Same owner with different name formats

Solution: normalized_ownership view maps variations to canonical names

3. Historical vs Current

Problem: Properties change groups over time

Solution: Separate views for historical (group totals) vs current (owner details)

System Components

1. Data Generation (generate_data.py)

Generates hierarchical JSON data files:

python3 generate_data.py

Creates:

2. Chart Generation (generate_charts.py)

Creates comprehensive 4-panel analysis charts:

python3 generate_charts.py

Generates charts for:

Each chart shows:

  1. Payment Performance by Fiscal Year
  2. Outstanding Balance Comparison (Real vs Adjusted)
  3. Payment Ratio Analysis
  4. Transaction Adjustments Breakdown

3. Web Dashboard (index.html)

Interactive three-level navigation:

Running the System

Quick Start

# Generate JSON data files
python3 generate_data.py

# Generate all charts (takes ~2-3 minutes for 45+ charts)
python3 generate_charts.py

# Start web server
python3 -m http.server 8000

# View dashboard
# Open http://localhost:8000 in web browser

Key Design Decisions

Why Historical Ownership?

Why ALL Owners Get Charts?

Real vs Adjusted Debt

Neutral Language

File Structure

company_debt_website/
├── index.html # Main dashboard
├── help.html # This documentation
├── generate_data.py # Creates JSON data files
├── generate_charts.py # Creates financial charts
├── data/ # Generated JSON data
│ ├── groups.json
│ ├── owners/
│ └── accounts/
├── charts/ # Generated PNG charts
│ ├── financial_analysis_*.png
│ └── owners/
└── README.md # Technical documentation

Troubleshooting

Duplicate Data

Missing Owners

Totals Don't Balance

Important Notes

  • Body Corporate (CC) entities excluded per requirements
  • ~$36M for Onterran includes all historical properties
  • Charts generated for ALL owners for complete transparency
  • System handles ownership changes and name variations automatically
  • Fiscal year runs June 1 to May 31, labeled by ending year