Skip to content

Use case

Build a month-end report that rebuilds itself every morning.

Give the board a report that is finished before anyone opens it. Your ledger, payments, CRM and budget feed it, a scheduled Function does the sums, and the board opens it as an App on your own domain.

Result per business areaJan–Oct · kEURExample of a year-to-date result per business area drawn as bars against a budget mark, with the difference in figures, rebuilt from the ledger every morning.
  • Service agreements6,240 +340
  • Installation2,980 −370
  • Projects1,410 +210
  • Spare parts690 −10
Rebuilt 05:00 from the ledgerBudget

Example data: Acme Services is an invented company with four business areas.

What the business gets

Stop rebuilding the report every month.

Once it runs, the figures are waiting each morning, and month-end goes to reviewing them.

  • The month is there when the books close.

    Result per business area against budget rebuilds from the ledger every morning. Nobody copies figures between files.

  • Every figure traces back to the ledger.

    The sums start from the ledger's journal lines, kept as a table, so anyone with access can query the entries behind a figure.

  • Sales and finance quote the same revenue.

    Both read one revenue table, so the board meeting starts from a single figure.

  • No more file only one person understands.

    The sums are code in a Git repository, with their history. A new question no longer waits for whoever built the spreadsheet.

How it is built

Build it in four steps, in one repository.

Four connections, one scheduled Function that loads them and does the sums, eight tables and one App. The Function and the App are code in the finance workspace's Git repository.

01 Connect

Connect Xero, Stripe, your CRM and your budget once.

Pick each system from the catalog and sign in once. The gateway adds the provider's key to every call, so your code never holds it. The sync Function you schedule in step 03 loads each system's records into a bronze table.

workspace/finance4 connections · 1 syncExample: 4 systems connected to a workspace, Xero, Stripe, Microsoft Dataverse, Workday Adaptive Planning. A run of a sync Function loads each one's data into a table.
  • Xerosync run bronze.xero_journalsloaded
  • Stripesync run bronze.stripe_chargesloaded
  • Microsoft Dataversesync run bronze.dataverse_accountsloaded
  • Workday Adaptive Planningsync run bronze.adaptive_budgetloaded

02 Store

Fill the eight tables the financial-dashboard template reads.

Create a lakehouse named finance_app. Your sync Function writes the raw records to its bronze schema and the finished figures to its app schema, which the template reads without doing sums of its own. The template's CONTRACT.md explains every column and how to compute it from Fortnox. From Xero or another ledger, you map your accounts to the same eight tables.

  • status, periods, kpis, monthly_results
  • profit_and_loss, revenue_split, cash_balance, time_report
  • An empty table shows an empty state, not an error
lakehouse/finance_appParquet · SQLExample: a lakehouse with the schemas bronze (as loaded), app (read by the App).
  1. bronzeas loaded

    • xero_journals
    • stripe_charges
    • dataverse_accounts
    • adaptive_budget
  2. appread by the App

    • status
    • periods
    • kpis
    • monthly_results
    • profit_and_loss
    • revenue_split
    • cash_balance
    • time_report

03 Run

Schedule one Function to load the data and do the sums.

Write it in Python with a sync handler, give it a cron line, and push. Every day at 05:00 UTC it pulls each system through its connection into bronze, then rebuilds the app tables from those rows. The sample shows Stripe and one of the eight tables; the rest follow the same pattern. Every Function run gets its own sandbox, deleted when the run ends. If a run fails, every workspace owner hears about it.

functions/finance-app-tables0 5 * * *Example: a Python Function with a sync handler, scheduled at 05:00 UTC every day, that loads the Stripe charges and the other systems into bronze tables through their connections and then writes the monthly results and the other app tables, with its run log ending in success.
import limilake
from limilake import connections

fn = limilake.function(
    id="<the id limilake add function wrote>",
    name="finance-app-tables",
    schedule="0 5 * * *",  # 05:00 UTC
    timeout="20m",
)

MONTHLY_RESULTS = """
select area, month, sum(amount) as result
from bronze.xero_journals group by all"""

@fn.sync
def rebuild() -> None:
    charges = connections.get(
        "stripe", "/v1/charges",
        params={"limit": 100},
    ).json()["data"]
    limilake.sync.write(
        charges, to="bronze.stripe_charges",
        key=["id"])
    # Xero, Dataverse and the budget the same way
    rows = limilake.lake.query(MONTHLY_RESULTS)
    limilake.sync.write(
        rows, to="app.monthly_results",
        key=["area", "month"])
    # the other seven app tables the same way
  1. 05:00:00started in its own sandbox
  2. 05:00:04loaded 100 Stripe charges
  3. 05:00:09loaded 4 bronze tables
  4. 05:00:14wrote app.monthly_results and 7 more
succeededworkspace owners told if a run fails

04 Ship

Push to main. The board has its report.

Start from the financial-dashboard template: five pages behind a month picker, from profit and loss to cash. It goes live for your workspace's members, on a domain of yours.

  • Overview, profit and loss, revenue, cash, time
  • Members only, each with their own sign-in
  • Your domain, with the certificate issued for you
  • Ask Claude or ChatGPT for a figure over MCP, with your own sign-in
limilake add app board-report --template financial-dashboard
apps/board-reportfinancial-dashboardExample of a month-end report published as a members App from the financial-dashboard template, on the domain reports.example.com, with three key figures and the board, the shareholders and the finance team as the people who can open it.
reports.example.comactive

Acme Services · October

Revenue
10,997
Result
1,482
Cash
4,820

Members who can open it

  • Board members5 people, own sign-inviewer
  • Shareholders3 people, own sign-inviewer
  • Finance team4 people, own sign-ineditor

Connections

Start from the systems your figures already live in.

Each one is a ready-made connection.

All 857 connections
  • XeroAccounting
  • Stripe Connect
  • Sage IntacctAccounting
  • Microsoft DataverseCRM
  • Workday Adaptive PlanningAccounting
  • SharePoint OnlineStorage
  • BrexFinance
  • FortnoxAccounting

Questions

Answers for the builder and the CFO.

Who builds it?

Anyone on your side who writes Python and SQL: a developer, a data person, an agency, or a coding agent. The template ships an AGENTS.md that tells a coding agent how to adapt it. Nothing goes live until someone with editor access pushes to main.

How long does a first version take?

We will not guess before we have seen your ledger. The App side is fixed: once the eight tables exist, the report shows them. The work is in your data, and a demo is where we look at it.

How do the figures stay in step with the ledger?

They rebuild on the schedule you set: each run loads the ledger first and then does the sums from it. When a scheduled run fails, every workspace owner gets an email and a notice in LimiLake by default. Bookkeeping stays in the accounting system.

Who can see what?

The board, the shareholders and the finance team, each at the level you give them in the workspace: viewer to read the report, editor to change how it is built. Everyone signs in to open the App, and a change in access applies from their next query.

Where is the data kept?

Hosted in the EU, on our own hardware, apart from every other customer's data. The finance tables are stored as Parquet and read with plain SQL, and any query result saves to a file.

See this report built on your own systems.

We walk through this example, from the connections to the App the board opens, then look at what your ledger and CRM would need.