The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
58 | |
56 | |
55 | |
50 | |
32 |
User | Count |
---|---|
172 | |
89 | |
70 | |
46 | |
45 |