Skip to main content
Microsoft Idea

Power BI

Needs Votes

Query Folding Improvements

Vote (21) Share
Alex Powers's profile image

Alex Powers on 03 Jun 2020 23:32:57

Based on the community's findings we'd welcome a second look at the following Power Query functions vs the equivalent SQL server functionality for improvements to Query Folding.

These changes would enable faster dataset refreshes where applicable and improve the overall experience of using Power Query against relational data sources.

Name----------------------------------Supports Folding--------SQL
Character.FromNumber------------FALSE---------------------CHAR
Text.PositionOf------------------------FALSE--------------------CHARINDEX
Date.AddDays-------------------------FALSE---------------------DATEADD
Date.AddQuarters--------------------FALSE---------------------DATEADD
Date.AddWeeks-----------------------FALSE---------------------DATEADD
Date.DayOfWeekName-------------FALSE---------------------DATENAME
Date.EndOfMonth--------------------FALSE---------------------EOMONTH
Text.At-----------------------------------FALSE---------------------SUBSTRING
Text.Start-------------------------------FALSE---------------------LEFT
Text.Replace--------------------------FALSE---------------------REPLACE
Text.Repeat----------------------------FALSE---------------------REPLICATE
Text.Reverse--------------------------FALSE---------------------REVERSE
Text.End--------------------------------FALSE---------------------RIGHT
Text.ReplaceRange-----------------FALSE---------------------STUFF
Text.Range----------------------------FALSE---------------------SUBSTRING

Comments (1)
Alex Powers's profile image Profile Picture

Jerry Knowles on 17 Oct 2022 18:25:15

RE: Query Folding Improvements

and fold for Teradata, and other databases too, please. How does Microsoft not fold these? Substring commands are one of the most basic SQL statements :-(