eCommerce · Case Study

One Revenue Dashboard Across Five Sales Channels

The COO asks which channel contributes the most margin. Five reports offer five answers because one includes tax, another excludes refunds and a third has not received last week’s shipping costs. The dashboard is the last step; agreeing the accounting meaning comes first.

Explore eCommerce automation →

How can five sales channels share one revenue dashboard?

Ingest source records into a warehouse, preserve their original identifiers and map them to common order, product and channel dimensions. Define gross sales, net revenue and contribution margin with finance before building dashboards. Refunds and costs need explicit attribution and reporting periods. Freshness and reconciliation tests should accompany every total. The reporting layer keeps connector coverage, source access and reporting freshness visible.

What makes a channel total fit for review?

Use this acceptance sheet before relying on a cross-channel comparison. Reconciliation, freshness and mapping coverage matter as much as the time saved preparing a report. No reporting results are asserted here.

Revenue reporting acceptance sheet
Question to settleEvidence to review
Is preparation easier?Reporting preparation time

Analyst time spent preparing a recurring channel report, logged before and after rollout.

Does the figure reconcile?Revenue reconciliation variance

Absolute difference between modeled and approved source totals by channel and period, with currency basis stated.

Is the period current?Data freshness

Elapsed time since the latest complete source load, separately for each connector.

Are records mapped?Unmapped record rate

Records missing approved product or channel mappings divided by ingested records.

finance definition note

Before the dashboard, settle the meaning of revenue

Finance needs to know whether a figure includes tax, when a refund reduces revenue and where an advertising charge belongs. A channel comparison can only answer the COO’s question when those choices are consistent.

Source identity

Preserve the source before normalizing it

Load each channel into separate raw tables with extraction timestamps and source keys. Confirm connector support and API permissions individually. Namespace order IDs by source and map SKU aliases through a reviewed product dimension. Quarantine unmapped records instead of assigning a convenient default channel.

Reporting grain

Choose a grain that avoids double counting

Model order lines, refund lines, advertising spend and fulfillment expenses as separate facts. Aggregate each fact to an agreed channel and date grain before joining. Deduplicate connector updates using source primary keys and update timestamps; retain corrections in raw history.

Metric contract

Make the metric contract visible

Finance defines whether net revenue excludes tax and includes shipping income, when refunds are recognized, how currencies convert and which costs belong in contribution margin. Marketing spend is not an order-level cost without an agreed allocation model. Show unattributed costs and incomplete periods explicitly.

Technical details

Follow a channel total back to its facts

Order lines, refunds and costs remain separate until they reach an agreed reporting grain. A dashboard total is only as clear as its lineage.

Sales channelsOrder lines and product identifiers
Refund sourcesRefund lines and original order references
Cost sourcesAdvertising and fulfillment expenses
AirbytePreserve source keys

Ingest supported sales and advertising sources.

raw history
BigQuerySeparate raw and curated datasets

Store raw source history and curated reporting models.

versioned transformations
dbtFacts, dimensions and relationship tests

Transform and test dimensional models.

fact_order_linefact_refund_linefact_channel_cost
SQLAggregate each fact to the agreed grain

Express reconciliations and metric definitions.

Finance defines tax, currency, refund recognition and contribution margin.
Looker StudioApproved metrics + source freshness

Present approved revenue and cost metrics.

Simplified implementation architecture. Open a technology to inspect its responsibility.

Freshness, reconciliation and warehouse access

Use read-only source credentials and separate raw-data access from reporting access. Run uniqueness, not-null, relationship and source-total tests. Track load lag, row-count changes and reconciliation differences. Failed loads resume from checkpoints; late adjustments trigger bounded partition rebuilds rather than silently replacing approved reports.

Prove the metric against finance-approved source totals

Reconcile sample periods to channel exports and finance-approved totals. Test partial refunds, multiple currencies, deleted records and late costs. Deploy versioned dbt models through a staging dataset, compare totals and retain the previous reporting view for rollback.

Interactive demo

Explore five channels without losing the source

Select a channel in the revenue chart to inspect its reporting status. The exception path shows how a late refund feed changes what finance can certify.

Local interactive demo

Revenue model explorer

Fictional records
Reporting definition
Demo total / all five channelsRM 114,000.00
DirectRM 45,000.00 − RM 3,000.00Gross sales − refunds
These fictional amounts demonstrate how a metric definition changes the calculation. They are not client revenue or measured results.
Reference records for this demo
Normalized channel facts
ChannelNet revenueSource freshnessCertification
Direct storeRM 42,000Complete demo loadReconciled
Marketplace ARM 28,000Complete demo loadReconciled
Marketplace BRM 19,000Refund feed delayedPartial
Social shopRM 14,000Complete demo loadReconciled
WholesaleRM 11,000Complete demo loadReconciled
Interactive reconstruction using fictional records. All actions stay in this browser session. No client system, message, purchase, approval or invoice is changed.

Related implementation: explore another BytePilot workflow.

Revenue definitions, attribution and late adjustments

Which system is the revenue source of truth?

Finance must choose the reporting authority. Orders describe sales activity; settlements describe cash movement. They should not be treated as interchangeable revenue records.

Does this show profit per order?

Only when costs can be assigned defensibly at that grain. Otherwise the dashboard should report channel contribution and identify unallocated expenses.

What if a connector is unavailable?

Discovery may identify a supported export or custom API ingestion path. Coverage, cost and refresh frequency must be agreed before promising the dashboard.

How are late refunds handled?

Finance chooses recognition and restatement rules. Models retain the original order reference and refund date so both operational and period reporting can be explained.

Related case studies

DISPATCH / ORD-1042Webhook received
▣SHOPIFY ORDERORD-1042Paid · address verified
✓dispatch key
⌂WAREHOUSE NORTHWH-204Receipt linked to order
01Original eventAccepted
02Repeated eventReuse receipt
03Missing postal codeHold
Event receipt → validation → dispatch ledger → warehouse acknowledgement.
Sample data · Interactive demo inside
eCommerce

From Order Chaos to Automated Fulfillment

Paid orders pass through spreadsheets before warehouses and delivery partners receive them.

  • Shopify API
  • n8n
  • PostgreSQL
  • Python
  • Webhooks
View case study
RETURNS / RET-214Agent workspace
CUSTOMER
I would like to return the unopened item from my order.
ASSISTANT DRAFT · NOT SENT
Your order is within the standard return window. Please confirm the item condition for our support team.
Reply approval: support agent
Sample data · Interactive demo inside
eCommerce

An AI Returns Assistant That Knows When to Escalate

Support agents repeatedly find orders, interpret return policies and ask for missing details.

  • Claude
  • FastAPI
  • Redis
  • Zendesk API
  • AWS Lambda
View case study

Discuss your revenue reporting

Put two conflicting revenue reports on the table

Choose one reporting period and the two sources that disagree most often. We can trace the difference, agree the metric contract with finance and identify which source records the reporting model needs.

Discuss your revenue reporting →

Data & Reporting · Choosing a workflow to automate

  1. 01A sales export and the finance-approved comparison
  2. 02Refund recognition and cost-allocation rules