External Revenue Table

The External Revenue table stores uploaded revenue records from sources outside the main ecommerce sales platform. One row per external revenue record per event date.

📋

Table Guide

What You Can Answer With This Table

  • How much revenue came from external source types or named sources? — use amount_total, source_type, source_name
  • Which stores or regions generated external revenue? — use amount_total, location, state_code
  • What product-level detail was included in uploaded external revenue records? — use breakdown

Before You Query

  • Required field: event_date
  • If an uploaded revenue record covers a date range, External Revenue shows one row per day in that range. amount_total and any product-level breakdown revenue are spread across those daily rows.

When to Use a Different Table

  • Use Orders table when you need order or customer detail for ecommerce sales. The External Revenue table is for uploaded revenue from outside sales-platform and marketplace order records.

View the full Triple Whale Data Ontology →


Dimensions

Dimensions are immutable properties that can be used for grouping data.

TitleIDTypeDescription
Event Dateevent_datedate

The date the external revenue was generated. Based on the shop time zone at the moment of the event (or the user time zone, if no sales platform is connected).

Note: Each uploaded row can represent either a single date of revenue, or a start and end date. For rows containing a date range, Triple Whale will amortize the amount over the time range.

Event Dayevent_date.daydateThe day the event occurred. Derived from event_date.
Event Weekevent_date.weekdateThe Sunday of the week during which the event occurred. Derived from event_date.
Event Monthevent_date.monthdateThe month during which the event occurred. Derived from event_date.
Event Quarterevent_date.quarterdateThe first month of the quarter during which the event occurred. Derived from event_date.
Event Yearevent_date.yeardateThe year during which the event occurred. Derived from event_date.
BreakdownbreakdownJSON

A JSON array containing product-level details for the revenue.

Each element in the array is an object with the following properties:
  • sku (string): The SKU (Stock Keeping Unit) for the product.
  • product_id (string): The unique product ID.
  • amount (number): The quantity of the product sold.
  • revenue (number): The revenue amount for this specific product. This value is automatically converted to your shop's selected currency for display.
Channelchannelstring

The marketing or sales channel through which the revenue was generated.

Example values: online, retail, wholesale, in-store

Citycitystring

The city where the revenue was generated.

Example values: New York, Los Angeles, Chicago

Created Atcreated_attimestamp

The timestamp when the revenue record was created in Triple Whale (when the CSV was uploaded and processed).

Example value: 2025-01-15T10:30:00.000Z

Source Currencycurrencystring

The original currency in which the revenue was recorded, before conversion to the shop's currency. All monetary values are automatically converted to the shop's selected currency for display.

Example values: USD, GBP, EUR

Note: All revenue metrics are automatically converted to your shop's selected currency for display.

Locationlocationstring

The physical location or store where the revenue was generated.

Example values: Downtown Store, Mall Location, Warehouse A

Source Namesource_namestring

Free-text identifier to name the specific revenue source.

Example values: Downtown Store, Amazon B2B, Popup Shop)

Source Typesource_typestring

The type of revenue source.

Possible values:
  • retail: Retail revenue
  • wholesale: Wholesale revenue
  • pos: Point of Sale revenue
  • offline: Offline revenue
Statestatestring

The full state name where the revenue was generated.

Example values: California, New York, Texas

State Codestate_codestring

The two-letter state code where the revenue was generated.

Example values: CA, NY, TX

ZIP Codezipstring

The ZIP or postal code where the revenue was generated.

Example values: 10001, 90210, 60601

Measures

Measures are numeric fields that can be aggregated and/or combined to calculate new metrics.

TitleIDTypeDescription
Amount Totalamount_totalnumericThe total revenue amount for the record.