python generate_sample_data.pyThis will create:
data/budget_2024.xlsx- Full year budget (all 12 months)data/actuals_2024.xlsx- YTD actuals (Jan-Oct)
jupyter notebook fpa_analysis_toolkit.ipynb-
Run Cells 1-9 (one time - defines all functions)
-
Verify Cell 2 settings:
CURRENT_MONTH = 'Oct'
BUDGET_FILE = 'data/budget_2024.xlsx'
ACTUALS_FILE = 'data/actuals_2024.xlsx'- Run Cell 10 - The complete analysis executes automatically!
Check the output/ folder for:
FPA_Report_Oct_2024.xlsx- Complete Excel report with 8 tabs
- Data loading confirmation
- YTD trend analysis showing:
- Revenue: ~$15M YTD
- Expense: ~$25M YTD
- Variances and trends
- Material variances requiring investigation
- Forecast summary
- Gap analysis
- Monthly Trend Chart: Budget vs Actual/Forecast
- Variance Waterfall: Current month performance
- Executive Summary
- Current Month Detail
- YTD Summary
- Department Detail
- Material Variances
- Forecast Detail
- Gap Analysis
- Metadata
With the sample data generated:
Revenue:
- Annual Budget: ~$18M
- YTD Actual: ~$15M
- Forecast: ~$18-19M (depending on method)
Expense:
- Annual Budget: ~$30M
- YTD Actual: ~$25M
- Forecast: ~$30-31M
Material Variances:
- Expect 10-20 accounts with variances >10%
- Mix of favorable and unfavorable
Forecast Gap:
- Revenue: Usually within ±5% of budget
- Expense: Usually within ±3% of budget
- Make sure you ran
generate_sample_data.pyfirst - Check that
data/folder exists - Verify file paths in Cell 2
- Install dependencies:
pip install -r requirements.txt
- Make sure
SHOW_CHARTS = Truein Cell 10 - Try
%matplotlib inlinebefore Cell 10
- Check that
output/folder exists - Verify
EXPORT_TO_EXCEL = Truein Cell 10 - Check file permissions
Once you've verified it works with sample data:
-
Use Your Own Data:
- Export your actual budget/actuals to Excel
- Ensure columns match required format
- Update file paths in Cell 2
-
Customize for Your Organization:
- Update departments in Cell 2
- Modify account categories
- Adjust variance thresholds
-
Run Monthly:
- Update
CURRENT_MONTHin Cell 2 - Export new actuals file
- Run Cell 10
- Review material variances
- Share Excel report with stakeholders
- Update
---
## **Complete File Structure**
Your project should look like this:
fpa-analysis-toolkit/ ├── README.md # Main documentation ├── QUICKSTART.md # Quick start guide ├── requirements.txt # Python dependencies ├── generate_sample_data.py # Data generator script ├── fpa_analysis_toolkit.ipynb # Main notebook (Cells 1-10) ├── data/ # Input data folder │ ├── budget_2024.xlsx # Generated by script │ └── actuals_2024.xlsx # Generated by script └── output/ # Output folder └── FPA_Report_Oct_2024.xlsx # Generated by notebook