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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
chefe
Helper II
Helper II

Power Query M: 1 query, twice referenced => data loading three times?!

Hello,

 

I'm importing a folder of text files. The combined contents are stored in "F" file.

I then reference F two times and apply a different filter to each  with F1 and F2.

 

Now, when refreshing it seems that all three querying the source files, generating long loading times. Also the files are a couple of hundred MBs in size.

 

My guess would have been that only F reloads the data. F1 and F2 then near-instantaneously being up-to-date as well. But this does not seem to be the case.

 

Is this expected behaviour?

 

Kind regards

 

pq_loading.png

 

 

 

 

 

2 REPLIES 2
v-xjiin-msft
Solution Sage
Solution Sage

Hi @chefe,

 

To improve the performance of referencing table, you need to buffer your table. Like: Table.Buffer(YourTable). After adding the Table.Buffer, when your refresh your reference, it will not access the database again.

 

For more details, please refer: 

https://community.powerbi.com/t5/Desktop/How-to-Improve-Query-Reference-performance-for-large-tables...

https://blog.crossjoin.co.uk/2016/11/20/referenced-queries-and-caching-in-power-bi-and-power-query/

 

Thanks,
Xi Jin.

Hello, does it work if the query has been made of table combined of 12 files of around 300 mega each?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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