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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
AndrewSikomas
Regular Visitor

Performance Issues with Unpivot and Append Query

Hello everyone,

 

First-time, long-time...

 

I have a table that contains two Values (that would go in the Value field in a visual). I want them to be in the same column, and I can differentiate between them using another column and the attribute in that column.

 

Naturally I used Unpivot Columns. This works fine, except the refresh rate (Oracle connection) went from thousands of rows per second to TENS of rows per second. I have millions of rows, so this is not practical.

 

My next best option was to separate the table into two tables. I first duplicated my table, then prepared each resultant table accordingly, and Appended one to the other. All column names and order are identical in both tables. This too is taking FOREVER. I do not understand why that would be.

 

For Unpivot I understand why it would reduce performance. For Append though, I don't get it.

 

I then tried to do all my data prep on the table, then reference the table into a new query, Table.Buffer it, THEN Unpivot, thinking this would Unpivot as a local operation, but when I Close&Apply, the data load is from the Oracle source and is still very, very slow.

 

Any ideas?

1 ACCEPTED SOLUTION
kcantor
Community Champion
Community Champion

@AndrewSikomas 

It sounds like your query is folding at an inopportune time. Check out these two resources to see if you can tweak the query for speed.

https://www.mssqltips.com/sqlservertip/3635/query-folding-in-power-query-to-improve-performance/

https://blog.pragmaticworks.com/power-bi-checking-query-folding-with-view-native-query





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
kcantor
Community Champion
Community Champion

@AndrewSikomas 

It sounds like your query is folding at an inopportune time. Check out these two resources to see if you can tweak the query for speed.

https://www.mssqltips.com/sqlservertip/3635/query-folding-in-power-query-to-improve-performance/

https://blog.pragmaticworks.com/power-bi-checking-query-folding-with-view-native-query





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors