You can connect every source a report needs and still end up with numbers you can’t explain. Regional sales files describe individual order lines, customer assignments sit in a separate system, and a planning spreadsheet holds monthly targets. You’ve got access to all three, which leaves you with one real decision: How should those records fit together?
Combining multiple sources into one workflow means building that prep and combination logic once and reusing it, instead of redoing the same cleanup by hand over and over every reporting cycle.
This article walks through the decisions that matter along the way — when to stack records, when to join them, and when to summarize before you compare. You’ll also see how to check whether your combined output still answers the original business question, and how to keep that logic usable when next month’s files look a little different.
Start with the question your workflow needs to answer
What should the finished output represent? Decide that one thing before you open a single connector, because everything downstream, every combine step and every check, depends on the answer. For our purposes here, the answer is one row per region per month, comparing actual sales against the approved target.
Naming what one row means in each input comes first. In the sales extract, one row is an order line; in the customer mapping, it’s one assignment for a defined period; in the planning file, it’s one target for a region and month. You’ll sometimes hear this called the grain of the data. Naming it early pays off — if you skip it, a combine step that ignores mismatched grain will hand you numbers that seem perfectly plausible and mean something other than what you think.
It’s tempting to grab every source that’s technically available, but additional sources should earn their place rather than just being easy to reach. The question should guide which sources you include, with a named owner for each.
You’ll need to establish agreement with the people who own those definitions on the reporting period and approved plan version, because a file’s arrival date doesn’t tell you which period its records cover. Source owners and IT can also help confirm access early on, especially if the workflow will run somewhere other than your own desktop, where the credentials needed may be different.
Here’s how those three inputs line up:
| Input | What one row represents | Decision to resolve |
|---|---|---|
| Regional sales extracts | One order line | Define a key that stays unique across sources |
| Customer-to-region mapping | One assignment for its applicable period | Historical assignment or current region? |
| Planning spreadsheet | One target per region and month | Which plan version and who owns it? |
Of the three, the customer mapping deserves special emphasis. It has a business owner, and while you can build the workflow that applies it, redefining a region assignment isn’t a call to make unilaterally inside a workflow, no matter how much it would clean up the numbers.
Make your sources comparable before combining them
Two columns can look identical and still mean completely different things, and the real question is which differences would change the result when you combine them.
Before you blend anything, run each pairing through the same short list of checks:
- Keep identifiers in their original format all the way through the workflow. A leading zero that gets converted to a number, 00452 becoming 452, can break every downstream match without producing an obvious error.
- Confirm what each source counts, not just what its columns are named. Two fields both called “sales” might use different inclusion rules, one including tax and shipping while the other doesn’t.
- Reach agreement with the business owner who defines the reporting period on whether transaction date or posting date governs, and apply that choice the same way every time you run the workflow.
- When two systems use different customer ID schemes, resolve the difference with an approved ID crosswalk — a lookup that’s separate from the customer-to-region mapping — and route anything that doesn’t resolve cleanly to a review step instead of dropping it.
A record you can’t match with confidence is information, not noise. This kind of alignment work has a name, data standardization, and doing it deliberately here saves you from solving the same mismatch differently in every workflow you build after this one.
Choose how to combine the data
Three operations show up again and again: stacking equivalent records, joining related records, and summarizing before you compare. Picking the wrong one for a given step can produce a wrong number that still looks right.
Stack equivalent records with a union
Use a union when multiple extracts describe the same kind of record, in this case, regional sales files that share the same fields, lining up the columns so equivalent measures align and checking whether the extracts overlap before you combine them.
It’s the simplest of the three combine operations, which is exactly why that overlap check is the one that gets skipped when a deadline’s tight. A union doesn’t verify that every record is unique or that two similarly named fields carry the same meaning. Confirming that is what the format and definition checks are for, not the union itself.
Join related records using the right keys
Each order line gets its region through a join to the approved customer mapping. Knowing how many matches to expect gives you a way to judge the result — a join that returns far more or far fewer rows than expected is telling you something. Route unmatched transactions to an explicit review output rather than letting them disappear, and account for customer assignments that change over time, because a join built on today’s assignment can misclassify last year’s transactions.
Summarize before comparing different levels of detail
Aggregate actual sales to the region-month level before joining the monthly target onto it. Join the target directly onto every order line first, and the value repeats on each line, so summing afterward inflates the total, sometimes by a large multiple depending on order volume. Summarizing first, then joining once at the intended level, keeps the comparison honest.
Put side by side, the three operations compare like this:
| Need | Approach | Decision to verify |
|---|---|---|
| Combine equivalent regional sales extracts | Stack rows with a union | Do the extracts overlap, and do the measures use the same definitions? |
| Add regional assignments to order lines | Join to the customer mapping | Does each transaction match the intended assignment for its date? |
| Compare sales with monthly targets | Aggregate actuals then join by region and month | Is each target represented at its intended level? |
Target-only regions and actuals-only combinations need to stay visible for review. An inner join alone hides exactly the unmatched cases you need to investigate, and converting an unavailable target to zero will manufacture a comparison that never happened.
For background on the concept behind these decisions, this data blending explainer covers the foundations in more depth.
Check what changed after combining your sources
Say a $100 order matches two rows in the customer lookup instead of one. Before the join, that’s one row summing to $100; after it matches two lookup rows, it’s two rows summing to $200. That’s a hypothetical illustration, not a customer result, but it’s exactly the kind of error that survives a first pass through a workflow because nothing else appears broken.
The fix depends on why there were two matches in the first place. One lookup row might be obsolete and due for cleanup, or both might be legitimately valid for different effective dates, in which case deleting either one would be the wrong move. Investigate the relationship before you touch the records.
This kind of check matters well beyond the current month’s number, because when someone asks six months from now how a figure was produced, “The workflow ran without error” isn’t an answer, but a documented reconciliation step is. Treat validation as part of the deliverable, not a step you skip when the totals seem fine.
Run a validation checklist after every combine
A short checklist makes this kind of validation actionable rather than aspirational:
- Required sources need to cover the intended reporting period before you call the output complete.
- Customer matches should follow the expected relationship, so missing keys and overlapping assignments are the first things to review.
- Sales totals should reconcile before and after the join, after you factor in any approved exclusions.
- The value of unmatched transactions matters as much as their count, because a handful of orders can represent a meaningful share of revenue.
- Target-only and actuals-only combinations should stay visible until you’ve resolved what they mean.
Row counts aren’t a reliable pass or fail signal on their own. A valid grouping step reduces them on purpose, just as a legitimate one-to-many relationship increases them on purpose. The right check tests whether the specific operation you intended happened, not whether the row count matches some expected constant.
Even when the grand total reconciles, you still need to ask: Did the sales land in the right regions? A transaction assigned to the wrong region under an effective-date rule shifts revenue between two regions while leaving the company-wide sum untouched, so the totals check passes and the comparison is still wrong. Spot-check a sample of transactions against their approved assignments, particularly around the dates when a mapping rule changed.
Decide what happens when a check fails
It’s wise to build in a response for a failed check, rather than just the check itself, because a configured test tells you something is wrong but doesn’t decide what needs to be done about it. Name who investigates a failed check and whether the output gets held or published with a flag attached. After this decision is made, your team doesn’t have to re-litigate it every month.
For more on building checks like these into a workflow instead of running them by hand each cycle, this piece on data cleaning techniques for automated workflows goes deeper on deduplication, exception routing, and validation.
Keep the workflow usable when inputs change
After you’ve validated one run, the harder question is whether it will still make sense the next time someone runs it — and that depends on a handful of things you should build in from the start:
- Document who owns each mapping and which business rules affect the result, so the logic doesn’t live only in your head, and preserve source identifiers and enough run context that you can trace an unexpected number back to the input that caused it.
- Treat a new optional column and a missing required field differently. Accepting a changed file structure without checking it doesn’t prove the resulting analysis is still correct; it just means the workflow didn’t crash.
- When a regional boundary changes, test the revised assignment against a reporting period you already know the answer for, and clarify with the business whether history should be restated under the new boundary or the new rule applies only going forward.
- Confirm every required source is reachable, with the right permissions, in the environment where the workflow will run day to day. A connection that works from your laptop may need different configuration when it’s shared with a teammate or moved to a scheduled server.
- Remember that saving a workflow so it can be rerun doesn’t by itself set up unattended execution. Scheduling is a separate, deployment-specific step that needs its own verification.
This rigor is what separates a workflow from a one-off cleanup. Someone other than the person who built it should be able to open it, understand what each step assumes, and answer a question about last quarter’s number without asking you first.
How Siemens Energy connected data for recurring analysis
Siemens Energy’s experience shows what’s involved in bringing that business logic into a shared workflow. At its Tampa manufacturing site, Siemens Energy had data spread across SAP, manufacturing execution systems, spreadsheets, and a handful of internal tools, the kind of spread that makes “just combine the sources” sound simpler than it is. Business users built connected workflows that now support more than 40 dashboards and analytical views drawing on those systems.
The project required reconstructing business logic that had lived inside individual source systems and spreadsheets. That part of the story is particularly useful when you’re planning your own process, as the connections gave the team access, while recovering the business rules behind the numbers took work with the people who understood them.
For your own pilot, allow time to confirm that the combined output reflects the intended business rules. Read the full story of how the Tampa team approached it.
Bringing data preparation into a governed workflow
Alteryx One is built to hold data preparation and analysis in the same environment, rather than splitting the work across scripts, spreadsheets, and sticky notes. You can review how the workflow combines inputs and trace an unexpected result back through the steps that produced it.
The Input Data, Join, Union, and Test tools in Alteryx Designer support these operations, though availability depends on your environment. You and your business owners still define the matching rules, the reporting period, and what happens when a check fails.
When you review the workflow with your team, each stakeholder will have different questions. Show finance how you reconciled the comparison, so they see the checks behind the number, not just the total. Give IT the access requirements up front: source credentials, execution environment, and who owns what. Your manager will want to know whether another analyst could maintain the workflow.
You don’t need every connector or automation feature to start; you just need one workflow you understand end to end. Explore Alteryx One with a free trial and start building it with your next recurring analysis.