Forum

How to create multi...
 
Notifications
Clear all

How to create multiple output tables from one query

4 Posts
2 Users
0 Reactions
1,714 Views
(@peterbs7)
Posts: 2
New Member
Topic starter
 

I've got a large number of input files which I process with a single power query. Using this I manage to read 100's of CSV files, manipulate the data  and create a single table.

I now want to create two output tables from a single query.. e.g. 1st output table has all the input data and a 2nd output table with a subset of the input data. Can a single query create multiple tables?

I could run two queries, but seeing as an individual query takes 10 mins to run, I don't really want to run it twice.

 
Posted : 26/02/2020 2:29 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Peter,

Welcome to our forum!

If you right-click the first query in the left hand query list of the Power Query editor, then select 'Reference', you'll create a second query based on the first query. 

In regards to the slow refresh times, please see this link on ideas for improving Power Query refresh times.

Mynda

 
Posted : 26/02/2020 11:38 pm
(@peterbs7)
Posts: 2
New Member
Topic starter
 

The hint about speeding up refresh times has really made a difference.. reduced the load from 10 mins to 2 mins...

 
Posted : 03/03/2020 11:15 am
(@mynda)
Posts: 4761
Member Admin
 

Wow, great result 🙂

 
Posted : 03/03/2020 6:32 pm
Share: