When using PowerBI in DirectQuery, you cannot query a SQL Server View with an ORDER BY without receiving the SQL Server error message
"The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP, OFFSET or FOR XML is also specified."
While I understand we cannot include an ORDER BY in the SQL Server View Definition, we should still be able to issue an ORDER BY against a pre-defined View (or utilize the Query Editor for Direct Query for sorting, etc.)
- Comments (2)
Comments (2)
RE: Allow the use of ORDER BY when querying a SQL Server View in DirectQuery
Write the query into stored procedure and execute it through power get data option
RE: Allow the use of ORDER BY when querying a SQL Server View in DirectQuery
Any resolution or workaround to this problem?