Skip to main content

Mapping Header Data

Often, important contextual information isn't located in the main data columns of your spreadsheet but resides in the header rows at the top of the sheet. Examples include:

  • Report Month or Quarter
  • Coverholder
  • Contract ID
  • Currency
  • Class of Business

Decode allows you to extract this header information and map it to specific columns in your target Decode Table, just like regular data columns.

How Header Data is Handled

  1. Extraction: During the initial processing phase, Decode attempts to identify key-value pairs in the top few rows of your spreadsheet sheet. It looks for common patterns like "Label: Value".
  2. Availability in Mapping: Any successfully extracted header fields are made available in the mapping dropdown during the review process. They are typically prefixed with External >> to distinguish them from regular spreadsheet columns (e.g., External >> Report Month, External >> Wholesaler).
External Data Fields
External Data Fields

Mapping Header Data to Table Columns

The process is identical to performing a Simple Mapping:

  1. Locate Target Table Column: In the Mapping Table section of the Preview Dialog, find the row for the Table Column where you want to store the header data (e.g., a Static Column named Report Period or a Metadata Column named Wholesaler Name).

  2. Ensure "Simple" Mapping Type: Make sure the toggle for that row is set to "Simple".

  3. Select Header Field: Click the dropdown in the "Mapping" column. Scroll through the list and select the appropriate header field, identifiable by the External >> prefix (e.g., select External >> Report Month to map it to your Report Period Table column).

  4. Review Sample Data: Check the Sample Data Preview at the bottom. While the header data itself won't appear as a column in the sample (since it applies to all rows from that sheet), ensure other mappings still look correct. The header value will be added to each row during final ingestion.

  5. Confirm/Approve: Include this mapping when you approve the sheet.

By mapping relevant header data, you enrich the data within your Decode Table, adding valuable context directly alongside your core metrics.

Finally, let's look at the last step: Approving the Upload.