mergeheader

Combine a defined number of rows into the table header.

Introduction

Use the mergeheader enrichment instruction to combine a defined number of rows into the table header. The default merge direction is up, meaning the rows directly beneath the header are merged into the header.

Creating the enrichment

For more information on creating an enrichment, see Using custom scripts.

Configuring the enrichment

To configure the enrichment, fill in the following fields. Required fields are marked with an asterisk (*).

Nrows*

Enter the number of rows below the header to merge into the header.

Fillright

This option defines how to handle empty rows. If left unselected, the header value remains unchanged as there are no values to add to the header. If selected, the values to the left of the empty column are added to header value (see example 2 for an example of this feature).

Joinchar

Enter the character to use as a joining character.

Example 1

Enrichment configuration

Nrows*

2

Fillright

Leave this checkbox unselected.

Joinchar

_

Data table before enrichment

Campaign

Ad Group

Campaign Name

Clicks

Brand

media

7

Brand

ecommerce

3

Dashboard

media

18

Brand

ecommerce

4

Dashboard

media|social

5

Dashboard

media

11

Data table after enrichment

Campaign_Brand_Brand

Ad Group_media_ecommerce

Campaign Name

Clicks_7_3

Dashboard

media

18

Brand

ecommerce

4

Dashboard

media|social

5

Dashboard

media

11

Example 2

Enrichment configuration

Nrows*

2

Fillright

Select this checkbox.

Joinchar

_

Data table before enrichment

Campaign

Ad Group

Campaign Name

Clicks

Brand

media

7

Brand

ecommerce

3

Dashboard

media

18

Brand

ecommerce

4

Dashboard

media|social

5

Dashboard

media

11

Data table after enrichment

Campaign_Brand_Brand

Ad Group_media_ecommerce

Campaign Name_media_ecommerce

Clicks_7_3

Dashboard

media

18

Brand

ecommerce

4

Dashboard

media|social

5

Dashboard

media

11