2.90:Use Case: Transposing Rows and Columns with Row Match
So you have a set of documents. Most of them have a very straightforward table. It's easily extracted using the Row Match method. But every now and then, you get another document with a table presenting the same data, but in a wildly different table structure. So different, in fact, that the data is presented as rows instead of columns. One solution would be to create two different Data Models for two different Document Types with two different Data Tables using two different extraction techniques. However, there may be a more elegant solution, using what we call the "Pivot Row Method".
The Problem
While these tables present data in different ways, they share a great deal of data points. For this explanation, we will focus on eight shared data points. These data points will become the Data Columns for our Data Table.
- Well Name (also known as "Completion Name")
- API Number
- Oil Produced
- Oil Sales
- Gas Produced
- Gas Sales
- Water Produced
- Producing Days
So, the question is: How can we use the Row Match method to extract this data, using a single Row Extractor?
The Solution
The answer is to use what we call the "Pivot Row Method". The idea is to translate the columnar data in the second documents into rowed data like the first document. We will "pivot" from data organized in columns to data organized in rows.



