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
tgjones43
Helper IV
Helper IV

Pivot column function timeout

Hi all

 

I have a table of 4 columns and about 9 million rows. I have applied a pivot column function which should create 9 columns from the attribute column but it is just keeps running without completion. In PBI Desktop I eventually get a message saying run out of disk space, although I think this is perhaps more to do with how PBI is hosted on my company's IT platform. When I recreate the data model in Dataflows after 2 hours of processing it comes up with a message saying "Evaluation failure". If I filter the attribute column to keep just 1 of the 9 values the pivot column function works and loads data in a couple of minutes. It does that for any of the 9 options.

 

So is it issue that it cannot pivot such a large amount of data?

 

Thanks

Tim

 

 

5 REPLIES 5
v-jingzhang
Community Support
Community Support

Hi @tgjones43 

 

It may due to the large data size. Is it possible to apply some aggregations on the table in data source in advance? Or reduce unnecessary columns or rows to reduce the data size?

 

Best Regards,
Community Support Team _ Jing

Hi @v-jingzhang I think you're right that it is the large data size, it's just strange that this has happened all of a sudden after the query had been working fine. I have removed all unnecessary rows and columns already, so I will perhaps have to try something different.

I have 5500 rows, and 4 columns, still Pivot is timing out. Any other way we can fix this issue? It works very fast on Desktop, but not in PowerBi Service? I have a PPU license. 

 

Any other methods you can propose. 

mahoneypat
Microsoft Employee
Microsoft Employee

Usually unpivoting is the way to go. Are you sure you want to pivot your data?

 

In any case, how many columns do you have? Does it work if you first remove all but the Attribute and Value columns? If so, you could construct the query that way.

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Hi @mahoneypat thank you for your reply. Yes I do need to pivot. Data is basically like this:

 

Category 1Category 2AttributeValue
11Atext
11Btext
11Ctext
12Btext
12Dtext

 

and needs to be like this:

 

Category 1Category 2ABCDEFGHI
11texttexttextnullnullnullnullnullnull
12nulltextnulltextnullnullnullnullnull

 

final table should take up about 1.8 million rows. I do need both category columns.

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.

Top Solution Authors