Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Here's my query, I get an error "Not supported in DirectQuery mode":
let
Source = Sql.Database("***.database.windows.net,1433", "sqldb"),
dbo_departure = Source{[Schema="dbo",Item="departure"]}[Data],
#"Removed Other Columns" = Table.SelectColumns(dbo_departure,{"ident"}),
#"Sorted Rows" = Table.Sort(#"Removed Other Columns",{{"ident", Order.Ascending}}),
list = Table.ToList(#"Sorted Rows")
in
list
Can someone tell me which part of this is not supported in DirectQuery mode? The error message doesn't give me much to go on.
Solved! Go to Solution.
Hi @sqlpirate,
The ‘list = Table.ToList(#"Sorted Rows")’ statement is not supported in Direct Query Mode. As I tested, it works fine and get desired result when I run the following query.
let Source = Sql.Database("CNV-HUIZHN-W10", "AdventureWorks2014"),
HumanResources_vEmployeeDepartmentHistory = Source{[Schema="HumanResources",Item="vEmployeeDepartmentHistory"]}[Data],
#"Removed Other Columns" = Table.SelectColumns(HumanResources_vEmployeeDepartmentHistory,{"GroupName"}),
#"Sorted Rows" = Table.Sort(#"Removed Other Columns",{{"GroupName", Order.Ascending}})
in #"Sorted Rows"
While it return error when I add the ‘list = Table.ToList(#"Sorted Rows")’ in quey.
Best Regards,
Angelia
Best Regards,
Angelia
Hi @sqlpirate,
The ‘list = Table.ToList(#"Sorted Rows")’ statement is not supported in Direct Query Mode. As I tested, it works fine and get desired result when I run the following query.
let Source = Sql.Database("CNV-HUIZHN-W10", "AdventureWorks2014"),
HumanResources_vEmployeeDepartmentHistory = Source{[Schema="HumanResources",Item="vEmployeeDepartmentHistory"]}[Data],
#"Removed Other Columns" = Table.SelectColumns(HumanResources_vEmployeeDepartmentHistory,{"GroupName"}),
#"Sorted Rows" = Table.Sort(#"Removed Other Columns",{{"GroupName", Order.Ascending}})
in #"Sorted Rows"
While it return error when I add the ‘list = Table.ToList(#"Sorted Rows")’ in quey.
Best Regards,
Angelia
Best Regards,
Angelia
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
94 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |