Get our free guides to start using Jira and Confluence Cloud like a pro.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

On this page you will learn about:



The Table Excerpt and Table Excerpt Include macros combine different kinds of table excerption and multi-excerption in one tool:

  • excerption within one page
  • multi-excerption within multiple pages and spaces searched by:
    • page names
    • page trees
    • labels

The macros improve the performance of pages storing large tables and let you use the original tables for any purpose, including filtering, building multiple charts and pivot tables.

Widget Connector
width432
urlhttp://youtube.com/watch?v=r-nLyUOUaLA
height243
 

Why should I use these macros?




When you build multiple pivot tables and charts from table ➜ 

Multiple copies of a large source table within one page cause reducing of processing speed  ➜ 

Inserting references to a source table with the Table Excerpt/Table Excerpt Include macros leads to continued productivity.



Table of Contents
maxLevel1
indent20px



Using the Table Excerpt Macro

Adding the Table Excerpt macro to a page:

  1. In the Confluence editor, choose Insert > Other Macros.
  2. Find and select the required macro.
  3. Enter the unique identifier for the macro.
  4. Click Insert.
Tip

You will be able to reference the marked table by inserting the Table Excerpt Include macro and entering the specified unique name.


Tip

Speeding up macro entry with autocomplete: type { and the beginning of the macro name 'Table Excerpt", to see a list of suggested macros. Select the Table Excerpt macro from the prompted results.

Adding a Table into the Table Excerpt Macro:

  1. Copy (cut) a table.
  2. Paste the table into the Table Excerpt macro placeholder.


Handy Carousel
delay1000
items0



Using the Table Excerpt Include Macro

Adding the Table Excerpt Include Macro to a Page and  Specifying the Settings:

  1. In the Confluence editor, choose Insert > Other Macros.
  2. Find and select the required macro.
  3. Specify the settings:
    • Enter the Excerpt name of the macro.
    • Select the Excerpt source to define the pages containing the Table Excerpt macro:

      - Current page
      - Specific page (specify the page title)
      - Page and childpages (specify the page title)
      - Page and all descendants (specify the page title)
      - Pages with labels (specify the page labels and the space title)

    • If you select the Current page option, select the  Show a copy of the source table checkbox in case you want to show a copy of a source table in the page view mode.
    • To improve the performance of the page select the Output cached results checkbox. Please note that in this case the included content is static. To update the content in the Table Excerpt Include macro you need to visit the source page. If the checkbox is unchecked, the included content is dynamic.
    • To show page titles of included tables with the Table Excerpt Include macro, tick Show page titles of included tables.
  4. Click Insert.
Tip

Speeding up macro entry with autocomplete: type { and the beginning of the macro name 'Table Excerpt Include', to see a list of suggested macros. Select the Table Excerpt Include macro from the prompted results.


Tip

You can use the Table Excerpt Include macro withing one page without showing the source table in combination with the Pivot Table and Chart from Table macros because a pivot table and a chart can be built without displaying a source table.

On the other hand, if you want to use the Table Excerpt Include macro within one page in combination with the Table Filter macro you need to select the "Show a copy of the source table" checkbox because this macro requires a table for its correct work.






Handy Carousel
delay1000
items0



Using the Same Table for Generating Multiple Charts

  1. Insert the Table Excerpt macro and place the source table into the macro body according to the instructions above.
  2. Insert the Table Excerpt Include macro according to the instructions above and place it into the Table Filter, Pivot Table or Chart from Table macros or their combination.
  3. Adjust the parameters filtering, pivot tables and charts.
  4. Save the page.

As the result, you will receive multiple charts generated on the basis of the same data table from multiple pages.

View mode:

Edit mode:


Combining of Table Excerpt/Table Excerpt Include with Table Filter


1. 
You need to use the following structure: Table Filter > Table Excerpt > Table if you want to reuse the source table without filters on the same or another page with the help of Table Excerpt Include.

Info

Wrap Table Excerpt Include with Table Filter and filtration will affect its data on the page.


2. This 
structure: Table Excerpt > Table Filter > Table will let you use the already filtered table on the same or another page with the help of Table Excerpt Include.








Table Filter > Table Excerpt > Table

Handy Carousel


Table Filter > Table Excerpt Include

Handy Carousel


Table Excerpt >
Table Filter > Table

Handy Carousel



Outputting Table Excerpt Include with a Title of the Excerpt Source Page

If you want to output data with a source page title, you need to add a table with two cells (for a heading and a page name) first, then wrap it and Table Excerpt Include with Table Transformer, and use the following SQL query:

Code Block
languagesql
SELECT *
FROM T1 OUTER JOIN T2


Info

You can insert a link to the page name if needed.


Info

The two cells table can be inserted into Table Transformer, including Table Excerpt initially as well.
Thus, Table Excerpt Include will display your table with a page title on a page at once.




Handy Carousel



Combining of Table Excerpt Include with Page Properties Report

If you want to combine data of Table Excerpt and Page Properties, you need to add a column with the page title to the table inside Table Excerpt first.

Then you need to wrap Table Excerpt Include and Page Properties Report with the Table Transformer macro and merge their data by the Title column.




Handy Carousel




Merging Tables from Different Pages

If you need to merge tables from different pages, please do the following steps:

1. Wrap tables on different pages with the Table Excerpt macro.
2. Insert  Insert one or multiple Table Excerpt Include(s) on  macros on a new page.
3. Specify its the settings

  • the Excerpt name of the macro
  • the Excerpt source to define the pages containing the Table Excerpt macro.

4. Wrap all the Table Excerpt Include macros with the Table Transformer macro for merging tables pulled from multiple pages.
5. Use Default presets or Custom Transformation for merging.


Handy Carousel