Ravindra BagaleCourses & study guides Track your progress

Guides

Duplicate vs Reference in Power Query

Duplicate copies a query and its steps into a new fork. Reference creates a new query that starts from another query’s output, so one cleaning can feed many tables. Same menu, opposite intent.

Friends! Students duplicate everything “to be safe” and then fix the same spelling twice. Why? They never learned Reference. How? We clean Sales Raw once for FreshBasket, Reference it for a city summary, and only Duplicate when we truly need a fork. Query Dependencies shows the chain.

Quick answer

Vertical path:

  1. Finish cleaning on Sales Raw (types, blanks, rename).
  2. Need a shared child? Right-click → Reference.
  3. Need an independent experiment? Right-click → Duplicate.
  4. Turn Enable load off on staging queries you do not want in the model.
  5. View → Query Dependencies to see forks vs chains.
  6. Fix a city spelling on the base once; referenced queries inherit it on refresh.

Real example: one clean sales table, two uses

Sales Raw after cleaning (three rows, total 190):

City Year Channel Amount
Mumbai 2025 Online 100
Mumbai 2024 Store 50
Pune 2025 Online 40

Reference path — query Sales 2025 references Sales Raw, then filters Year = 2025:

  1. Rows in from parent: all three.
  2. Filter keeps Mumbai 100 and Pune 40.
  3. Total 140.
  4. You did not re-trim or re-type columns. Parent already did.

Duplicate path — you copy Sales Raw to experiment with a harsh filter. Changing the duplicate’s early steps does not update Sales Raw. Two recipes.

Why Reference is the helper for shared cleaning: one place to fix “Pune ” with a trailing space; every child sees the fix.

What do I need before this guide?

Before and after (look at the tables first)

Before duplicate or reference Clean parent sales table.

Before

After reference filter Referenced query filtered to 2025.

After

Duplicate = fork

Power Query Duplicate Duplicate copies the query and its steps. Later changes on one copy do not update the other. Power Query Duplicate Duplicate copies the query and its steps. Later changes on one copy do not update the other.

Duplicate copies the query and its steps. Later changes on one copy do not update the other.

  1. Right-click query → Duplicate.
  2. Full copy of steps appears.
  3. Safe sandbox when you might break something.
  4. Cost: two places to maintain if both stay in production.

Reference = chain

Power Query Reference Reference starts from the output of another query. Fix the source once; children see the clean table. Power Query Reference Reference starts from the output of another query. Fix the source once; children see the clean table.

Reference starts from the output of another query. Fix the source once; children see the clean table.

Power Query Dup Vs Ref Duplicate = fork. Reference = chain. Use reference when two queries should share the same cleaning. Power Query Dup Vs Ref Duplicate = fork. Reference = chain. Use reference when two queries should share the same cleaning.

Duplicate = fork. Reference = chain. Use reference when two queries should share the same cleaning.

  1. Right-click → Reference.
  2. New query’s first step points at the other query.
  3. Add only the extra filters or Group By you need.
  4. Disable load on the parent if it is only a staging table.

Enable load and dependencies

  1. Staging / helper queries: Enable load off — they clean, they do not clutter the model.
  2. Final tables the report needs: Enable load on.
  3. Query Dependencies diagram: arrows show reference chains. Flat copies show duplicates.

Mistakes and calm fixes

Symptom Likely cause Fix
Fixed spelling twice Used Duplicate for shared clean Switch to Reference
Model full of helpers Enable load left on Disable load on staging
Child not updating Actually a Duplicate Recreate as Reference
Circular reference Query points at itself oddly Simplify dependency chain

Ravindra Bagale's Tip

Interview line: “Duplicate forks the steps; Reference chains from the output. I reference shared cleaning and disable load on staging.” Got it?

Practice task

  1. Clean Sales Raw.
  2. Reference → filter 2025.
  3. Duplicate → experiment with Channel = Online.
  4. Draw which one should stay in production and why.

Learn it properly

Course lesson:

Related: Applied Steps · Power Query vs DAX

Got it? Duplicate forks; Reference chains. Clean once, reuse with Reference. Next: star schema. Let us go ahead.

Frequently asked questions

Duplicate vs Reference?

Duplicate copies steps into a new query. Reference creates a new query that starts from the other query’s result.

When do I duplicate?

When the second path must change early steps differently, or you are experimenting safely.

When do I reference?

When several queries should share the same cleaning, and you want one place to fix it.

Why is my model full of staging tables?

Enable load is still on for helpers. Turn it off for queries that only feed others.

Does reference copy the data twice in the source file?

No. It chains transformations. What loads into the model depends on Enable load.

Course lesson?

Reference vs Duplicate in Power Query essentials.