---
title: "Workflow Report Macro - Stats"
canonical: "https://support.appfire.com/space/CDML/649532393/Workflow%20Report%20Macro%20-%20Stats"
format: markdown
---
> Macro (aura-html)


> Macro (excerpt-include)



## Overview

> Macro (excerpt)
> 
> Add a workflow state statistics table to a page.

The **stats** report is used to summarise workflow state statistics in a space. It's great for seeing how many pages are in a specific workflow state.

This is one of several reports available from the [workflow report macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649594703).

> ℹ️ A new macro with increased functionality - the [document stats report macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649793642) - is now available.

## Permissions

The report is available to all users.

## Adding the report

To add the report to a page:

- choose **Workflow Report** in the macro editor
  
- set the **Type** setting to **stats**
- choose **Save**  
> Macro (inline-media-image)
- **Publish** the page

Here's how the macro looks on your page.

| In Progress | Review | Approved |
| --- | --- | --- |
| 17 | 2 | 108 |

## Customizing the report

There are no other settings applicable to this report.

## Why are old states shown?

If the table shows states from old workflows that are no longer used, [purging the space trash](https://confluence.atlassian.com/doc/delete-or-restore-a-page-139429.html#DeleteorRestoreaPage-purgeEmptythetrashorpermanentlydeleteapage) should solve the problem (deleted pages in the trash retain their workflow information).

## See also

[Reporting Guide](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649070833):

- [Report on states](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650216427)
- [Confluence Chart macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650152640)

[User Guide](https://appfire.atlassian.net/wiki/spaces/CDML/pages/648907144):

- [Workflow Popup](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649659846)

[Workflow Authoring Guide](https://appfire.atlassian.net/wiki/spaces/CDML/pages/648611901):

- [States](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649595551)