Excel User Guide¶
Connecting Excel to Konsolidat¶
Konsolidat exposes data through Cube's SQL API, which speaks PostgreSQL wire protocol. Excel connects via ODBC.
Install PostgreSQL ODBC Driver¶
- Download from https://www.postgresql.org/ftp/odbc/
- Install the 64-bit Unicode driver
- Restart Excel after installation
Create ODBC Connection¶
Option A: Power Query (Recommended)
- Excel → Data → Get Data → From Other Sources → From ODBC
- Connection string:
Driver={PostgreSQL Unicode};Server=localhost;Port=15432;Database=epm_gold;Uid=epm_excel;Pwd=YOUR_PASSWORD - Select a table/view → Load
Option B: ODBC DSN
- Open ODBC Data Source Administrator (64-bit)
- Add → PostgreSQL Unicode → Configure:
- Data Source:
Konsolidat - Server:
localhost - Port:
15432 - Database:
epm_gold - User:
epm_excel - Password: from
.env - Test → OK
- In Excel: Data → Get Data → From ODBC → Select DSN
Available Views¶
| View | Description | Key Dimensions |
|---|---|---|
v_pnl_report |
Profit & Loss by period | Entity, Year, Period, Account, Cost Center |
v_balance_sheet |
Balance Sheet | Entity, Year, Period, Account |
v_budget_vs_actual |
Budget vs Actual comparison | Entity, Year, Period, Account, Scenario |
v_consolidated_report |
Group consolidated report | Group, Entity, Year, Period, Account |
Building PivotTables¶
- Load a view into Excel (Data → From ODBC → select view)
- Insert → PivotTable → From this data
- Drag fields:
- Rows: Account Name, Cost Center
- Columns: Fiscal Period
- Values: Net Amount (Sum)
- Filters: Legal Entity, Fiscal Year
Refreshing Data¶
- Manual: Data → Refresh All
- Automatic: Data → Connections → Properties → Refresh every X minutes
Budget Input¶
Using the Budget Template¶
- Open
excel/budget_template.xlsm - Fill in budget lines (entity, period, account, amount)
- Click "Submit Budget" button (VBA macro sends POST to API)
Manual API Submission¶
Use Power Query M formula to POST budget data:
= Web.Contents("http://localhost:8080/api/v1/budget", [
Content = Json.FromValue([lines = budgetTable]),
Headers = [#"Content-Type" = "application/json"]
])
Budget Validation¶
After submitting, verify your data:
1. Open Frappe Desk (http://epm.local:8069) and check Budget Input records
2. Or query directly: SELECT * FROM v_budget_vs_actual WHERE fiscal_year = 2024