Skip to main content
Conga Support

Repeating Data in Word

You can add tables of data in a template in a variety of ways. In addition, you can also group related types of data, and apply conditional logic to hide tables that do not contain data.

Repeating Rows within a Table or List

You can set up a table so that each row of the table contains one row of the detailed data returned as a result of the report or query. Conga Composer® uses special table fields to accomplish this. Template Builder automatically sets up tables of repeating data for you, however, you can also create a table of repeating data manually.

  • {{TableStart}} initiates the set of repeating data. This field is placed in the first cell in the table.
  • {{TableEnd}} closes the set of repeating data. This field is placed at the end of the first row of data in the table.

The TableStart and TableEnd fields must contain the name of the dataset where the detail data originates, as shown in the Template Builder.

For more information, see Tables of Repeating Data.

Groups of Repeating Data Tables

Conga Composer includes two table fields to enable grouping by tables of related data:

  • TableGroup
  • TableGroupStart

TableGroup

You can group repeating data and organize it by the contents of a field. For example, You might group a quote by category of product, sales reports by representatives, or revenue by channel or customer.

You do this by including the {{TableGroup:DatasetName:FieldName:Show}} special merge field in the first row of the table.

For more information, see Organize Repeating Data Tables into Groups.

TableGroupStart

In addition to TableGroup, you can also group on a value in a table by including a pair of special merge fields, {{TableGroupStart:DatasetName:FieldName}} and {{TableGroupEnd:DatasetName:FieldName}}. For more information, see Grouping Repeating Data with Additional Information.

These fields must exist in a single table cell.

Only one TableGroup or TableGroupStart may be used per dataset.  You may duplicate a dataset in order to use an additional TableGroup or TableGroupStart; however, you must give this dataset a unique alias.

The benefit of TableGroupStart over TableGroup is that you may place merge fields, static text, or tables between the TableGroupStart and TableGroupEnd fields.

TableGroup and TableGroupStart are not supported in Conga Mail Merge.

Hiding Tables with No Information

You can also hide tables that do not contain any information. For example, you might hide a table listing discounts for clients who have not earned any. To do this, place a {{TableHide}} field anywhere within the table. You can also apply conditional logic to the TableHide field to hide tables when specific conditions are met.

For more information, see TableHide: Hide a Table without Data.