# Creating Multi-Column Data Regions

In this article, we will learn how to create multi-column regions in a report model so that you can read data from multiple columns.

1. To create multi-column data regions in your report model, go to *Files > New > Report Model.*

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FcMyobQAH7JGjFlTA385Q%2F0.png?alt=media)

2. Now, specify the *File Path* of your report for which you want to build the report model.

Download the sample PDF file here.

{% file src="<https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2Fgit-blob-751affbb35c79e5b28d8247c0dd4c9cceee5a15a%2F11-Multi-Column-Data-Region.zip?alt=media>" %}

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FFFTLHQWE92yXCAfP81vk%2F1.png?alt=media)

3. Your source file will be opened in the designer window where you can start building its extraction template.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FZyfRHV9kkTKOf7eqPZe9%2F2.png?alt=media)

4. Right-click on the *Record* node present in the Model Layout tab on the left side of your report model designer and select *Add Data Region*.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FdvrT0WQHzxA0FSY9ta7M%2F3.png?alt=media)

5. When you click on *Add Data Region*, you will see a subnode added to the *Record* node in the Model Layout tab. *Region Properties* panel and pattern-matching bar will also appear.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FLaDhhBHruDYbVx68YveF%2F4.png?alt=media)

6. In the *Region Properties* section, you will see a check box for the *Multi-Column* data region. Check this option.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FaIyMOeD5HnMV7lLhsYMj%2F5.png?alt=media)

7. You will see another bar appear just below the pattern-matching bar for specifying column boundaries. Click on the second bar above your report where your first column starts. This will create a black dotted line adjacent to your text on the left side. Repeat this for each column. If the alignment of your dotted line is wrong, click on it again to delete it.

The arrows show the start point for each column.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FvvcM8LAFzAy7YgrEsSIJ%2F6.png?alt=media)

## **Multi-column Region Properties**

You can also adjust the *Number of Columns* and *Page Margin* by clicking on the “**...**“ option next to the *Multi-Column* option.

*The Starting Points* box will show the points from where each column is starting. For instance, in this case, Column 1 is starting from “Point 0”, Column 2 from “Point 26” and Column 3 from “Point 52”.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2Fstt58sml2kvjdtOXYJl6%2F7.png?alt=media)

The number of columns corresponds to the number of starting points that you will see on this screen. If there are 4 columns, you will see 4 starting points.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FvETkq1IbIoSd56WGygZD%2F8.png?alt=media)

There is an option for automatically calculating columns – *Automatically Calculate Columns*. Here, you can specify:

* *Page Margin* – Where the text is starting from
* *Number of Columns* – Number of columns you want to have in your layout

Astera will automatically calculate and place the margins on your layout.

For instance, there are 3 columns in this report and the page margin is 0.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2F1dF8xpw7pYbyDxuCLoQi%2F9.png?alt=media)

After specifying the *Page Margin* and *Number of Columns*, click on *Calculate*. Your starting points will be automatically calculated.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FmzxeQ239FrQ1HNOMStbW%2F10.png?alt=media)

## **Capturing Data From Multiple Columns**

1. After creating multi-column data regions, give a suitable pattern in the pattern-matching bar to select your data region.

For this model shown in the screenshot below, write “*Name*:” in the pattern-matching bar. You can see that it has selected data regions where the pattern matches.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2Frkj5FSgtJ0G1Q89kVJql%2F11.png?alt=media)

2. Increase the *Line Count* to 7 to capture all data fields.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2Fv8vgyorioHwSUjIDkDts%2F12.png?alt=media)

3. Highlight the data you want to capture in a field, right-click on it, and select *Add Data Field.* You will see that the data in the highlighted data region has been selected and a new field is added to your extraction template. Rename your field using the *Name* option in the Field Properties panel.
4. Repeat the steps for all the fields to build your extraction template.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FdAo2crzAga2XxL1LBfSU%2F13.jpeg?alt=media)

5. To preview your report model, click on the *Preview Data* option.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FjzgaLsngIaYV9esaCNZa%2F14.png?alt=media)

Your final output will look like this:

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FwkMRwkGvkFqn6VhroC1q%2F15.png?alt=media)

This concludes working with multi-column data regions in Astera.
