Icon

Writing to a Database - 6 KPIs for any CEO

<p>This workflow saves the data from the 6 KPIs into a SQLite database.</p><p>Each KPI is computed in its dedicated workflow, which captures the computation of the KPI for all the available years.</p><p><strong>HOW TO USE</strong>:</p><ol><li><p><strong>Select a year </strong>in which you want to compute the KPIs</p></li><li><p>Run the workflow executors, so that they <strong>compute the KPIs</strong>.</p></li><li><p>Save the year on the database. So if it's the first year (no tables are present) use<strong> DB writer </strong>to create the tables. If instead you want to append the tables to already existing ones (i.e., you are adding years) use <strong>DB insert</strong> nodes.</p></li></ol><p>This database will be used in another workflow (<strong>6 KPIs Data App</strong>) to interactively display all the data.</p><p></p><p>Please note that the DB is directly saved in the 6 KPIs Data App "data" subfolder.</p>

This workflow saves the data from the 6 KPIs into a SQLite database.

Each KPI is computed in its dedicated workflow, which captures the computation of the KPI for all the available years.

HOW TO USE:

  1. Select a year in which you want to compute the KPIs

  2. Run the workflow executors, so that they compute the KPIs.

  3. Save the year on the database. So if it's the first year (no tables are present) use DB writer to create the tables. If instead you want to append the tables to already existing ones (i.e., you are adding years) use DB insert nodes.

This database will be used in another workflow (6 KPIs Data App) to interactively display all the data.

Please note that the DB is directly saved in the 6 KPIs Data App "data" subfolder.

5) Customer Churn KPI

1) Revenue Growth KPI

3) Market Share KPI

4) Employee Turnover KPI

6) Carbon Emission KPI

1) Year selection

To choose for each workflow which year to compute the KPI on.

2) KPIs computation (for a particular year)

Each KPI is computed in its dedicated workflow. Then, it's written on its corresponding table in the KPIs DB. In this way, in a separate workflow it's possible to visualize the KPIs in an interactive dashboard.

3) DB writing phase

Between the two possible options, use:

  1. DB writer nodes for the first year of the DB

  2. DB insert nodes for the next ones.

2) Gross Profit Margin KPI

Tables inpsection

Select one table to inspect

If the table does not exist (create):
Insert current year (add it to a table):
Notes:
  • Gross Profit Margin and Carbon Emission are simulated only for 2023

  • The order in which the years are saved is irrelevant

  • This workflow directly writes the database into the Data App workflow, that visualizes the KPIs

6 KPIs for any CEO: Writing to a Database


This workflow saves the data from 6 KPIs into a SQLite database.

Each KPI is computed in its dedicated workflow, which captures the computation of the KPI for all the available years.

How to use:

  1. Select a year for which you want to compute the KPIs.

  2. Run the workflow executors, so that they compute the KPIs.

  3. Save the year in the database. So, if it's the first year (no tables are present) use a DB Writer to create the table. If instead you want to append the tables to already existing ones (i.e., you are adding years), use a DB Insert node.

This database will be used in another workflow (6 KPIs Data App) to interactively display all the data.

Please note that the database is directly saved in the 6 KPIs Data App "data" subfolder.

Excel Reader
Year selection
DB Insert
DB Insert
Read ET
DB Writer
SQLite Connector
CSV Reader
Workflow Executor
Workflow Reader
Excel Reader
to Int()
Variable Expression
Workflow Executor
Workflow Reader
DB Writer
DB Writer
DB Writer
DB Writer
DB Table Selector
DB Writer
Workflow Executor
DB Reader
Workflow Reader
Workflow Executor
Workflow Reader
DB Insert
DB Insert
DB Insert
DB Insert
Workflow Reader
Workflow Executor
Read RG
Read GPM
Workflow Executor
Workflow Reader

Nodes

Extensions

Links