---
title: "How to hide and show columns"
canonical: "https://support.appfire.com/space/SQL/74321156/How%20to%20hide%20and%20show%20columns"
format: markdown
---
<span style="color: #000000">The </span><span style="color: #000000">*SQL Query*</span><span style="color: #000000"> macro editor gives the option to hide or show certain columns. This article explains the steps to learn how to hide or show the required columns. </span>

## <span style="color: #000000">Instructions</span>

1. <span style="color: #000000">In the relevant Confluence page, add or update the required </span><span style="color: #000000">*SQL Query*</span><span style="color: #000000"> macro. </span>
2. <span style="color: #000000">Specify the required </span><span style="color: #000000">*Data source profile*</span><span style="color: #000000">, enter the SQL query in </span><span style="color: #000000">*SQL statement*</span><span style="color: #000000">, and click </span><span style="color: #000000">**Run**</span><span style="color: #000000"> to view the retrieved data if the macro editor is opened for the first time, or proceed to the next step.</span>
3. <span style="color: #000000">Click the down arrow above the column to be hidden and click the </span><span style="color: #000000">**Hide column**</span><span style="color: #000000"> menu option.</span>

> ⚠️ The selected columns are hidden and a small solid black dot (•) is shown above the column name before the now hidden column.

4. <span style="color: #000000">Click the black dot (•) and select </span><span style="color: #000000">**Show column**</span><span style="color: #000000"> to make the hidden column visible again.</span>
5. <span style="color: #000000">Publish the page. Note that only visible columns are shown, and the black dots (•) are not displayed once the page is published.</span>

![image](media://5857e11e-2b91-46cf-9d9f-178aa2f2efbe)

## <span style="color: #000000">Additional references</span>

- <span style="color: #000000">[Key concepts](https://bobswift.atlassian.net/wiki/x/C4A9bw)</span>
- <span style="color: #000000">[SQL Query macro](https://appfire.atlassian.net/wiki/spaces/SQL/pages/74320881)</span>