Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
we have scheduled refresh that is pretty big and has a lot of temp tables, it's running daily and every query it contais is ran twice - both start within few seconds.
The queries take double the time to load - spending our database resources and we had to postpone all other processes since it takes around 90 minutes to load - instead of 45 min.
Database is Amazon Redshift and we're using ODBC connector, source is written in custom SQL.
I saw some older posts, I'm wondering if anyone has found a workaround for this issue?
Thank you!
Solved! Go to Solution.
Hi @Anonymous
I was searching and found some results about your refreshing twice, you can refer to them.
Power BI wants to know the schema of the table before the query actually runs, so it asks Power Query to return the top 0 rows. Unfortunately, in this case query folding can’t take place and the top 0 filter can’t be pushed back to the database, so the entire query gets run once to get the schema and once to get the data.
Maybe you can try the solution this blog has mentionedis using the Table.View M function to hard-code the schema returned by the query and implement query folding manually.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
I was searching and found some results about your refreshing twice, you can refer to them.
Power BI wants to know the schema of the table before the query actually runs, so it asks Power Query to return the top 0 rows. Unfortunately, in this case query folding can’t take place and the top 0 filter can’t be pushed back to the database, so the entire query gets run once to get the schema and once to get the data.
Maybe you can try the solution this blog has mentionedis using the Table.View M function to hard-code the schema returned by the query and implement query folding manually.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Stefano,
I'm not using dataflows yet - I've have dataset and report 1:1 connection, dataset is connected to database through gateway.
Lineage:
We have full refresh every day, scheduled from Dataset settings -> Scheduled Refresh.
Thanks!
by any chance you using dataflows connect to a data model dataset? can you share some more details on how the linages its set up and your refreshing configurations set up too.
Proud to be a Super User!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
26 | |
20 | |
18 | |
14 | |
11 |
User | Count |
---|---|
32 | |
20 | |
19 | |
18 | |
11 |