Skip to main content

Peliqan

FortNox

Total expenses per financial year

SQL query for FortNox

Calculate the total expenses for each financial year.

SELECT financialyears.year, SUM(expenses.amount) AS total_expenses FROM expenses JOIN financialyears ON expenses.year_id = financialyears.id GROUP BY financialyears.year

FortNox data model

FortNox
Financialyears

FortNox
Absencetransactions

FortNox
Attendancetransactions

FortNox
Accounts

FortNox
Articles

FortNox
Article Details

FortNox
Company Information

FortNox
Contracts

FortNox
Currencies

FortNox
Customers

FortNox
Customer Details

FortNox
Costcenters

FortNox
Employees

FortNox
Expenses

FortNox
Incominggoods

FortNox
Invoices

FortNox
Invoice Details

FortNox
Invoiceaccruals

FortNox
Invoicepayments

FortNox
Locked Period

FortNox
Labels

FortNox
Modesofpayments

FortNox
Offers

FortNox
Orders

FortNox
Pricelists

FortNox
Prices

FortNox
Productionorders

FortNox
Projects

FortNox
Purchaseorders

FortNox
Salarytransactions

FortNox
Stockbalance

FortNox
Stockpoints

FortNox
Stocktaking

FortNox
Suppliers

FortNox
Supplierinvoices

FortNox
Supplierinvoiceaccruals

FortNox
Supplierinvoicefileconnections

FortNox
Wayofdeliveries

FortNox
Vouchers

FortNox
Voucher Rows

FortNox
Voucherseries

FortNox
Account Charts

Ready to get instant access to all your company data ?​

Connect 300+ sources, serve any BI tool, and give every AI agent one governed endpoint to read, and write back where the app supports it.