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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
alex2811
Frequent Visitor

Does PIVOT break query folding?

Hi everyone,

 

I am currently redesigning some of my datasets in order to finetune their perfomance.

 

One thing I want to achieve is to push most of the heavy lifting back to the source (in my case it is a MS SQL Server) using query folding.

I noticed that as soon as I pivot (not: unpivot) a column, query folding seems to stop ("view native query" is no longer available for that applied step).

 

Can anyone tell me why this happens? According to microsoft, PIVOT should not break query folding since it has a corresponding function in SQL as far as I understand this article: (not a SQL pro, though ...)

 

https://docs.microsoft.com/en-us/power-query/power-query-folding#transformations-that-can-achieve-fo...

 

Thanks!

Alex

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi @alex2811 , 

I test this in my environment(I use sql database), which works well

653.PNG652.PNG

 Not sure whether this is related to data source(check whether is Relational data source ).

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
dax
Community Support
Community Support

Hi @alex2811 , 

I test this in my environment(I use sql database), which works well

653.PNG652.PNG

 Not sure whether this is related to data source(check whether is Relational data source ).

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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 Kudoed Authors