Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Query Editor - Can a query source be another loaded query? as opposed to the source file

Hi All

 

Some power query support required!

 

In my queries, i need to build pivot versions of my source data, while retaining the source data itself for various visualisation in my report.

 

The way I did this was simply duplicating the original query, unpivotting and formatting etc.

 

What I have realised since is when I updated the source of original query, the pivot version does not update - it remains based on v1 of the source data. I am now messing about with the advanced editor for each "pivot" version of my queries and it's all rather time consuming. 

 

So my question would be can I have a query with its source being another loaded query in the editor? Or does it always have to be my original excel / csv raw files?

 

I appreciate that a work around could be just overwriting the source data rather than using advanced editor to change it to a new file path, but it would be interesting if my suggested solution could actually be done.

 

thank you all,

 

GC4002

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

Yes.  That is exactly what the Reference feature is.  When you right click on a query to Duplicate it, choose Reference instead.  It uses the output of one query as the input of the new one.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

1 REPLY 1
mahoneypat
Microsoft Employee
Microsoft Employee

Yes.  That is exactly what the Reference feature is.  When you right click on a query to Duplicate it, choose Reference instead.  It uses the output of one query as the input of the new one.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.