---
title: "Use the Salesforce table macro with charts"
canonical: "https://support.appfire.com/space/CCSFCONFC/470090650/Use%20the%20Salesforce%20table%20macro%20with%20charts"
format: markdown
---
> Macro (aura-html)

A very useful application of the [Using Salesforce Table macro](https://appfire.atlassian.net/wiki/spaces/CCSFCONFC/pages/470090790) would be to combine it with [Atlassian's Chart macro](https://confluence.atlassian.com/doc/chart-macro-163415075.html).

The following is a quick and simple example of what is possible when you use Salesforce Table with [Charts](https://confluence.atlassian.com/doc/chart-macro-163415075.html).

> ⚠️ Unfortunately, this use case is no longer possible due to the introduction of Confluence Cloud's new editor. See [reference](https://jira.atlassian.com/browse/CONFCLOUD-53622).

# Steps

1. Let's start with creating a [Saved Filter](https://appfire.atlassian.net/wiki/spaces/CCSFCONFC/pages/470090637).
2. For this example, we have created a **Saved Filter** that searches for all **Opportunities** under "`Grand Hotels`":  
  
> Macro (inline-media-image)

  
This is the **SOQL Query** that was generated:
  We have saved this **Saved Filter** under the name"`Grand Hotels Opp`".
3. Now, on an empty page, create a Chart macro.
4. Edit the Chart macro and change the **Type** parameter to "`Bar`".  
  
> Macro (inline-media-image)

   
Click **Save**.
5. Within the Chart macro, create a Salesforce Table macro.
6. Edit the Salesforce Table macro.  
Let's use the **Saved Filter** we created earlier on.  
  
> Macro (inline-media-image)

   
Click **Save**.  
As a side note, this is what the Salesforce Table would look like without using the [Chart](https://confluence.atlassian.com/doc/chart-macro-163415075.html) macro:  
  
> Macro (inline-media-image)
7. **Save** the Confluence page to view the result:  
  
> Macro (inline-media-image)