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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
bjurek
Helper I
Helper I

Very long time loading a query to the sheet

Hello. I am writing about the very long time needed to load my Query.

This is a very simple query.

I download about 50 .csv files from a folder.

It transforms using Csv.document and Table.SelectColumns and Table.SelectRows.

Additionally, one Join and several calculated and conditional columns.

The number of expected "rows" as a result of loading into the sheet is about 200,000.

The loading time is about 2-3 hours. Is it normal?

 

 

bjurek_0-1668581670722.png

 

2 REPLIES 2
ImkeF
Community Champion
Community Champion

Hi @bjurek ,
I would say that this is not normal. Are you by any chance referencing a whole table in one of your calculated or conditional columns? Then you should buffer that referenced table, as without a buffer, it would be loaded over an over again for each row where you reference it.


Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Thanks for the answer.

Typically, as in this case, it adds calculated and conditional columns step by step.

It looks something like this:

1.Data import
2.Transformation (including calculated and conditional columns)
3.Load
I added the "Query dependencies" chart to the original post. Maybe this will show where I'm making a mistake

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.