Setting Up Invoice Tracking with Notion’s New Chart Features.


Posted by Jo Lodge on 19 August 2024


In this blog post, I’ll walk you through how to set up a new statistics section in your Pop Invoice Notion template. I've already added this to the current starter template, which you can check out and download here.

If you're using your own setup or want to learn how to create this from scratch, follow along with this guide.

What do the charts show?

The new statistics section in the template looks like this 👇It is in a toggle section at the top of page.

undefined

There are 5 charts showing the following:

  1. Donut chart - total of invoices overdue shown by duration overdue.
  2. Donut chart - invoices due this week showing the total amount by paid status.
  3. Bar chart - total amount invoiced by each client
  4. Horizontal bar chart - monitors overdue amounts by client and duration overdue.
  5. Line chart - tracks monthly invoiced amounts.

By the end of this post, you’ll have a statistics dashboard that gives you an at-a-glance overview of your invoice performance.

1. Create a "Paid Status" Property

To track overdue invoices, you need to add a new property to the invoices database that indicates whether an invoice is paid or overdue and by how much. This Paid Status property calculates the overdue status based on the invoice’s Due Date and Status properties.

  • Add a new formula property to the Invoices database and name it Paid Status
  • Copy the code below and paste it into the formula property

 

*If the code doesn't work for you, it may be because the properties have different names. Notion is case-sensitive, so this includes differences in capitalisation compared to the sample code provided.

2. Create a "Due This Week" Property

Next, create a property that automatically checks if an invoice is due within the current week. This will help quickly identify invoices that need attention.

  • Add a new formula property to your Invoices database and name it Due This Week.
  • Copy and paste the following formula into the new property

 

 *If the code doesn't work for you, it may be because the properties have different names. Notion is case-sensitive, so this includes differences in capitalisation compared to the sample code provided.

How the Formula Works:

  • If the Due Date is empty, the checkbox remains unchecked.
  • If the Due Date falls within the current week (Monday-Sunday) the checkbox is checked.
  • Alternative Week Option (Sunday-Saturday): An alternative version of the formula is provided if you want the week to start on Sunday. Uncomment the lines if you prefer this week structure.

TIP! How to Arrange Your Charts

In the Pop Invoice template, I’ve arranged the charts in a toggle list at the top of the main page, so you can easily view or hide them. If you’d like to do the same, I recommend creating and arranging your charts on a new Notion page first.. This allows you to experiment with the layout, arranging your charts using columns to get the perfect setup.

Once you’re satisfied with the layout, you can then turn the entire page into a toggle.

If you try to arrange the charts directly within a toggle list, Notion’s limitations make it impossible to place them in columns, restricting your layout options.

3. Create a Page to Arrange the Charts On

  • Create a new page
  • Open the page and start creating the charts following the instruction below 👇

4. Create the "Total Overdue" Chart

The "Total Overdue" chart provides a visual breakdown of the total amount overdue, categorised by how long each invoice has been overdue. This chart helps you quickly see where your overdue amounts are concentrated.

undefined
  • Add a Donut Chart to your new Notion page and link it to the Invoices database.
  • Open the View Settings - by clicking on the 3 dots top right of the chart.
  • Select Paid Status under What to Show.
  • For Each Slice Represents, select the Total Property and set It to Sum.
  • Under More style options set the following:
    • Show value in center: Turn this on to display the total amount in the center of the donut chart.
    • Turn legend on: Enable the legend to provide a clear key for what each slice represents.
    • Set Data labels to show Value (%): This will display the values and percentages on each slice.
undefined

Set filters on the chart:

Next you'll need to apply a couple of filters to show only sent invoices and exclude those that are not yet due.

  • Add a new filter on the Status property and select Sent
  • Add another filter, on the Paid Status property and set "Does not contain" to Not Due Yet

5. Create the "Due This Week" Donut Chart

This chart shows you the total amount of invoices due within the current week, broken down by their payment status.

undefined
  • Add a Donut Chart to the page and link it to the Invoices database.
  • Open the View Settings - by clicking on the 3 dots top right of the chart.
  • Select Paid Status under What to Show.
  • For Each Slice Represents select the Total property and set It to Sum.
  • Under More style options apply the same settings as before:
    • Show value in center.
    • Turn legend on.
    • Set Data labels to show Value (%).
undefined

Set filters on the chart

For this chart, you'll filter by the Due This Week property

  • Add a new filter on the Due This Week property.
  • Set the filter to checked.

6. Arrange the charts side by side

Now that you’ve created the Total Overdue and Due This Week charts, it’s time to arrange them side by side for a cleaner, more organised view.

  • Drag and Drop
    • Click and hold on to the "Due This Week" chart and drag it next to the "Total Overdue" chart. Notion will automatically create a new column as you position the charts

7. Add a Table View to the Charts

To get a detailed look at the data behind your charts, you can add a table view as a tab alongside your chart. This will allow you to see all the records that make up the chart, complete with the same filters applied.

  • Duplicate the chart tab
    • Right-click on the tab of your chart.
    • Select Duplicate. This will create an exact copy of your chart tab
  • Change the Layout to Table:
    • Go to the duplicated tab, click on the "…" (three dots) in the top-right corner, and select Layout.
    • Choose Table from the available layout options. This will convert your duplicated chart into a table view, showing all the underlying data with the same filters applied.
  • Customize the Table
    • Rearrange the columns to suit your needs by dragging and dropping them into the desired order.
    • Hide any unnecessary columns (like tax percentage) by clicking on the column header and selecting Hide from view.

8. Create a Vertical Bar Chart to Show "Total Invoiced Per Client"

Create a vertical bar chart to show the total amount invoiced per client. This chart will help you quickly see which clients contribute most to your invoicing.

undefined
  • Add a Vertical Bar Chart to the page and link to the Invoices database
  • Under the "X-Axis" settings
    • Select Client under What to show
    • Turn on the Omit zero values option to exclude any clients with no invoices.
  • Under the "Y-Axis" settings
    • Select Total under What to show and set it to Sum
  • More style options
    • Turn on Data Labels
    • Under Axis Labels select Both
undefined

9. Create a Horizontal Bar Chart to Show "Total Amount Overdue by Client"

A horizontal bar chart is ideal for visualising the total amount of overdue invoices per client. This chart will help you quickly identify which clients have outstanding payments and how much is overdue.

undefined
  • Add a Horizontal Bar Chart to the page and link to the Invoices database
  • Under the "X-Axis" settings
    • Select Total under What to show and set to Sum
    • Set Group by to Paid Status - this will allow you to see the breakdown of overdue amounts by the length of time they have been overdue.
  • Under the "Y-Axis" settings
    • Select Client under What to show
    • Turn on the Omit zero values
  • More style options
    • Set Group Style to Stacked
    • Show Both axis names
    • Turned the Legend off
    • Turn on the Data Labels
undefined

10. Create a Line Chart to Show Total Amount Invoiced Per Month

A line chart is perfect for visualising invoicing trends over time. This chart will help you track the total amount invoiced each month, giving you insights into your business’s financial performance.

undefined
  • Add a Line Chart to the page and link to the Invoices database
  • Under the "X-Axis" settings
    • Select Invoice Date under What to show and select to show by Month
  • Under the "Y-Axis" settings
    • Select Total under What to show and set to Sum
  • More style options
    • Show Y-Axis Name
    • Turn on Gradient Area: This will add a gradient fill beneath the line, making the chart more visually appealing.
    • Turn Off the Legend: Since this chart represents a single data series, the legend is not necessary.
    • Turn on Data Labels: This will display the actual values on the line, giving you a clear view of the amounts invoiced each month.
undefined

11. Turn the Page into a Toggle List

Once you’ve arranged your charts exactly how you want them, the final step is to embed the entire setup into a toggle list. This will keep your main page clean and allow you to expand or collapse the charts as needed.

  • Arrange the Charts:
    • Before proceeding, double-check that your charts are arranged in the desired layout. Ensure everything looks just the way you want it within the toggle.
  • Return to the main page
    • Highlight the page name
    • Select Turn into then Toggle Heading 3

The entire page, including your charts, will now be embedded within a toggle. You can easily expand or collapse the toggle to view or hide the charts.

By embedding your charts in a toggle list, you maintain a clean and organized template while keeping your data readily accessible whenever you need it.