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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
nirvana_moksh
Impactful Individual
Impactful Individual

Appending Queries Issues

Hello All

 

This has been an ongoing issue and I have tried everything but now I almost feel as this is an issue with PBI. So I am connecting to a total of 20 SQL Views which on SSMS side run in total under 1 minute - 1 minute 28 secs tops and returns a mere 900 row result. I dont do any crazy transformations on eah of these queries and only basically add 3 custom columns in each and when I dont apppend it runs very very fast, as soon as I append all 20 into a new query things go crazy and it takes 30-35 minutes to do the whole refresh.

 

Has anyone experienced this? I find this very very strange especially given that I am not doing anything crazy and the data set is nothing at all.

6 REPLIES 6
Anonymous
Not applicable

@nirvana_moksh,

For all the tables except the append query, disable "Enable Load" option in query editor, this way, apply only the append query to report view of Power BI Desktop. When data changes in your source tables, click "Refresh" in Report View of Power BI Desktop to bring new data to append query.
1.PNG2.PNG

If append query still takes long time, create the append table  with DAX instead by using UNION() function. Or you can create the append table in SQL Server and then import it to Power BI Desktop.

Regards,

Lydia Zhang

Also, the UNION in DAX wont work as the UNION in M would work because each view has a different layout of columns.

I did already disable the load feature for the base tables and I do not want create this global view in my PROD SQL environment only to keep that cleaner and I wanted to do this at the report level, but regardless should this not be an easy and fast load for like a mere 1000 rows? That is what surprises me, I know if I create this appended UNION in SQL it will be quicker but why does it take so much longer in Power BI?

Anonymous
Not applicable

@nirvana_moksh,

Do you Refresh data in Report view or Query Editor?

In addition, even if you have different layout columns in these tables, you can use UNION() function in DAX, there is a similar thread for your reference.


Regards,
Lydia

When I refresh data in the query editor using Refresh All it takes maybe 8-12 minutes, but when I hit Close and Apply, the refresh in the report view takes 29 minutes.

 

When I tried using the UNION DAX function with the 19 views it gave me the error of columns number mismatch.

Anonymous
Not applicable

@nirvana_moksh,

Have you used SELECTCOLUMNS() function to choose same number of columns in each table?  There is a similar thread for your reference.
https://community.powerbi.com/t5/Desktop/Union-thinks-column-numbers-are-different/td-p/174218

Regards,
Lydia

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.