Forum Discussion
Table.Join - does it works with DirectQuery or not?
- Anonymous4 years ago
It's because SQL joining to a table outside of the db breaks query folding, which is essentially the case here. Yoi could bring in the table 2x and filter to whatever and join that. Also, are you sure you meant to use Left_Anti?If you want fast and folding though, try:
Table.SelectRows(Table, each List.Contains(List.Buffer(List.Distinct({"00000000-0000-0000-0000-000000000000"})), [ID]))
Which is "WHERE [Table].[ID] in ["00000000-0000-0000-0000-000000000000"]"
--Nate
Hi cooler1978 ,
It has related to query folding in Power Query, please note: Transformations that prevent folding
-
Merging queries based on different sources.
-
Appending (union-ing) queries based on different sources.
-
Adding custom columns with complex logic. Complex logic implies the use of M functions that have no equivalent functions in the data source. For example, the following expressions format the OrderDate column value (to return a text value).
-
Adding index columns.
-
Changing a column data type.
In your second query, you have used 'Table.FromRecords' which would be recognized as another source so Power Query would remind the previous error.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.