---
title: "Examples: Create Expressions and KPIs"
description: "See how expressions and KPIs combine to calculate advanced metrics automatically."
lang: en
languages:
  en: https://docs.vismasoftware.no/onestopreporting/create-templates/report-designer/creating-reports/expressions-and-kpis/examples-use-of-expressions-and-kpis/index.md
  no: https://docs.vismasoftware.no/no/onestopreporting/create-templates/report-designer/creating-reports/expressions-and-kpis/examples-use-of-expressions-and-kpis/index.md
lastmod: 2026-07-21
---

> Documentation index: https://docs.vismasoftware.no/onestopreporting/create-templates/report-designer/creating-reports/expressions-and-kpis/examples-use-of-expressions-and-kpis/llms.txt


# Examples: Create Expressions and KPIs

Last modified July 21, 2026

> See how expressions and KPIs combine to calculate advanced metrics automatically.

To illustrate the creation of expressions and KPIs, we will look at some examples.

First, we will create two expressions called *INCOME* and *COGS*.

We will then create a KPI called GROSS MARGIN % which uses these two expressions to show the gross margin in %.

Finally, we have an example where we create a KPI based on measures.


---

[View this page](https://docs.vismasoftware.no/onestopreporting/create-templates/report-designer/creating-reports/expressions-and-kpis/examples-use-of-expressions-and-kpis/)


## In this section


- [Create KPI based on Expressions](https://docs.vismasoftware.no/onestopreporting/create-templates/report-designer/creating-reports/expressions-and-kpis/examples-use-of-expressions-and-kpis/combine-expressions-income-and-cogs-in-the-kpi-grossmargin/index.md): Combine saved expressions with mathematical formulas to calculate advanced business metrics.

- [Create KPI based on Measure](https://docs.vismasoftware.no/onestopreporting/create-templates/report-designer/creating-reports/expressions-and-kpis/examples-use-of-expressions-and-kpis/create-kpi-based-on-measure/index.md): Learn to combine different measures to calculate custom metrics like average price.

- [Create expressions: INCOME and COGS](https://docs.vismasoftware.no/onestopreporting/create-templates/report-designer/creating-reports/expressions-and-kpis/examples-use-of-expressions-and-kpis/create-expressions-for-income-and-cogs/index.md): Create logical groups of accounts that can be reused in multiple calculations.
