Skip to main content

Quickstart: Zero to First =K.EPM() Value

Get Konsolidat running and read your first figure in Excel. Times are rough; the image build on the first run takes a few minutes.

Prerequisites​

  • Docker Engine with Compose v2 (Docker Desktop on a laptop, or curl -fsSL https://get.docker.com | sh on Ubuntu 22.04).
  • 8 GB RAM for the image build.
  • Excel: Microsoft 365 desktop or Excel on the web.

Nothing else. Frappe, dbt and ClickHouse all run in containers. You do not need Python, Node or a Frappe bench on the host. (A native bench is possible: konsol runs on Frappe v16, which needs Python 3.14 and Node 24. See the Setup Guide.)

Step 1: Deploy the stack (about 10 minutes)​

git clone https://github.com/grynn-in/konsolidat.git
cd konsolidat
./deploy.sh

deploy.sh generates .env with random secrets, starts MariaDB, Redis and ClickHouse, stages the konsol app, builds the one Frappe image (Frappe v16), creates the site, starts the backend, worker, scheduler and Caddy, then runs the dbt build. It prints the URL and saves the Administrator password to .credentials. The full step list is in the Deployment Guide.

Verify:

./deploy.sh status # every service Up, infrastructure healthy
curl -s -H "Host: konsolidat.local" http://localhost:8069/api/method/konsol.api.health
# {"message": {"status": "ok", ...}}

The warehouse is built but empty. There is no demo data; the next steps load yours.

Step 2: Log in and declare the basics (about 10 minutes)​

Open http://localhost:8069 (or your domain) and log in as Administrator with the password from .credentials. The Konsol workspace is at /desk/konsol.

  1. Entity: create one legal entity (entity_code, entity_name, functional_currency, reporting_frequency).
  2. EPM Fiscal Year: create the fiscal year with its start and end dates and period pattern (Monthly, 12), run Actions, Generate Periods, and save.
  3. Main Account: open the list and click Upload chart to load your chart of accounts from a CSV or XLSX file, then Publish chart. This needs the EPM Admin (Close Lead) role, which Administrator has.

The Initial Setup Guide explains each of these and the rest of the configuration.

Step 3: Load a trial balance (about 5 minutes)​

  1. Open Trial Balance Upload in Desk and create a new document.
  2. Attach a file with one row per entity, period and account (the Initial Setup Guide gives the columns) and choose the Amount Basis your export uses: period movement, year-to-date movement, or period-end balance.
  3. Click Check file. The report lists each entity-period and whether it is ready.
  4. Click Load. Each ready entity-period becomes a submitted Trial Balance Submission, and a governed build of the warehouse is requested. Approve it under Builds waiting on the Konsol workspace, or open Pipeline Run, click New and Run Pipeline.

When the Pipeline Run shows Completed, epm_gold.gold_trial_balance has your rows.

Step 4: Install the Excel add-in (about 3 minutes)​

  1. Download the manifest from your site: in Desk, Close Settings → Excel Add-in → Download Excel add-in, or open https://<your site>/api/method/konsol.excel_addin.manifest. The file is konsolidat-<site>.xml, and every address in it is your site's, built from the site's host_name. Office add-ins need HTTPS, so the site needs an https host_name (bench --site <site> set-config host_name https://<public address>); without one the download is refused. If you installed an older static manifest.xml, remove that add-in first.
  2. In Excel, choose Insert, My Add-ins, Upload My Add-in and select the manifest.
  3. The Konsolidat button appears on the Home tab. Open the task pane and sign in with your Frappe user and password.

Step 5: Read a value (about 1 minute)​

In any cell:

=K.EPM("<entity_code>", 2025, 1, "<account>")

With your entity code and an account that has rows, the cell shows the net amount for that entity, fiscal year and period. Add a fifth argument to pick a measure ("period_debit", "period_credit", "period_net_amount").

What just happened​

Excel cell -> K.EPM() -> add-in batches the calls -> POST /api/method/konsol.api.epm_batch
-> konsol checks entity permission -> ClickHouse epm_gold -> value returned

The add-in groups the K. calls Excel makes, sends them in as few POSTs as possible to konsol.api.epm_batch, and returns each value to its cell.

Next steps​