Page tree

Versions Compared

Key

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

...

The Pivot table macro allows you to perform the following operations:

  • count Count - counts the number of values pertaining to one label in the master table.
  • get Max - determines the maximal value per each label.
  • Min - determines the minimal value per each label.
  • Average - calculates the , minimal or average values per each label.
  • calculate Sum - calculates the sum of values per each label.

Inserting Pivot table macro

...

Info

Before inserting the master table into the macro ensure the following things:

  1. The master table should contain identical the repeated labels that will be used for data summarization.
  2. Columns should have data of the same type. If the column has data of different types, you may get the an error when summarizing data in the pivot table.

Configuring Pivot table macro

  1. On the Confluence page opened in the edit mode, click the Pivot table macro.
  2. Click Edit.
    Image Added
  3. In the Edit Pivot table Macro form, define parameters of the macro, as follows:
    • Row Labels - select the column with labels, which the data will be summarized for.
    • Calculated Column - select the column you want to perform calculations for.
    • Operation Type - select the operation you want to perform.
    • Decimal separator - select the correct decimal character.
    • Thousands separator - select the correct thousands separator.
    • Decimal places - enter the number of decimal places to show in the pivot table.
  4. Click Save.

Using the Pivot table

Once you have defined settings of the Pivot table macro and saved the page, you get a pivot table with summarized data.

The generated pivot table is comprised of two columns:

  • The column with labels that data was summarized for.
  • The column with calculated values depending on the selected operation.

Image Added

The Total row shows the calculated value throughout the pivot table.

To the right side of your pivot table, you can locate the Pivot Table Settings sidebar. It allows you to alternate the following parameters of Pivot table macro:

  • Row Labels - change the column with labels for another one.
  • Calculated Column - change the column for data calculations.
  • Operation Type - change the operation type for another one.

To save new parameters in the macro body, click Save settings.