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
Table Financialyears

FortNox
Table Absencetransactions

FortNox
Table Attendancetransactions

FortNox
Table Accounts

FortNox
Table Articles

FortNox
Table Company Information

FortNox
Table Contracts

FortNox
Table Currencies

FortNox
Table Customers

FortNox
Table Costcenters

FortNox
Table Employees

FortNox
Table Expenses

FortNox
Table Incominggoods

FortNox
Table Invoices

FortNox
Table Invoice Details

FortNox
Table Invoiceaccruals

FortNox
Table Invoicepayments

FortNox
Table Locked Period

FortNox
Table Labels

FortNox
Table Modesofpayments

FortNox
Table Offers

FortNox
Table Orders

FortNox
Table Pricelists

FortNox
Table Prices

FortNox
Table Productionorders

FortNox
Table Projects

FortNox
Table Purchaseorders

FortNox
Table Salarytransactions

FortNox
Table Stockbalance

FortNox
Table Stockpoints

FortNox
Table Stocktaking

FortNox
Table Suppliers

FortNox
Table Supplierinvoices

FortNox
Table Supplierinvoiceaccruals

FortNox
Table Supplierinvoicefileconnections

FortNox
Table Wayofdeliveries

FortNox
Table Vouchers

FortNox
Table Voucher Rows

FortNox
Table Voucherseries

Use SQL on all your SaaS data

Magical SQL for FortNox with Peliqan.io

Explore data in a rich spreadsheet UI. Use Magical SQL to combine and transform data. SQL queries become new tables that can be shared with business users and used in any BI tool such as Microsoft Power BI, Tableau or Metabase.

Peliqan Ask AI willl write your SQL queries from plain English

Let AI do the work for you

Peliqan’s AI assistant helps you to write SQL queries to get to insights fast. Ask your question in plain English and immediately see the result in Peliqan’s rich spreadsheet viewer.