Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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
User | Count |
---|---|
64 | |
59 | |
47 | |
33 | |
32 |
User | Count |
---|---|
84 | |
75 | |
56 | |
50 | |
44 |