Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DirectQuery in PowerBI: We couldn't fold the expression of the data source #12

Closed
datawire1337 opened this issue Apr 10, 2021 · 1 comment

Comments

@datawire1337
Copy link

Hello,

Whenever I try to add a database field to a table (even an empty one) in PowerBI it gives me this message:
OLE DB or ODBC error: [Expression.Error] We couldn't fold the expression to the data source. Please try a simpler expression..

Any aggregates do not work either, they give me the same error.

I simply can't seem to get around this.

Thanks in advance!

@ilyagithub1
Copy link
Contributor

@datawire1337
It really depends on the specific query that Power BI is creating behind the scenes for your tables and fields.

It seems that the data in question is numeric, so it is possible that the root cause is the same as in issue #4, for which a fix has been provided in the latest version of Maria DB Connector for Power BI that ships with Power BI Desktop v2.96.901.0 (Date Published: 8/24/2021) and later.

Thus, a simple way is to upgrade to the latest Power BI Desktop.

In case you would like to have more insight, you might want to examine the analysis of the fix provided in #4 (comment). The root cause there was that Power BI Mashup Engine generated a SQL statement not supported by MariaDB Server. In many cases, a folding error could mean the same thing - an unsupported SQL statement.

If you need further assistance, please provide steps to reproduce your issue. Using Power BI Diagnostics Options might be very helpful. See detailed steps with screenshots on how to enable tracing in Power BI Desktop in #10 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants