Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
NicolasLJ
Frequent Visitor

We couldn't fold the expresion to the data source (NO DAX)

Hi,

 

I created a direct query data set by connecting to a Postgresql database with an SQL statement :

NicolasLJ_1-1705268248328.png

There is no transformations :

NicolasLJ_2-1705268483470.png

 

I tried a simple visual with a table, all fields are working except one (Hours field) :

 

NicolasLJ_0-1705268201269.png

 

Any help ? 🙂

3 REPLIES 3
hi_world
Helper III
Helper III

Hello, 
Did you find a solution ?

I find the same error.
except that for my part, if I open my dataset with a PowerBI version of 2023 it works well.

NicolasLJ
Frequent Visitor

I already found your article, but in my case there is absolutly no Dax, no transformation and the source is a simple query. All columns from the result of my query works when I add them into a simple table visual except one, I really don't understand...

 

I just tested creating a view on the database side and not adding any queries or dax or any transformations, just a direct query on a simple view... same error. 

Anonymous
Not applicable

Hi @NicolasLJ ,

You can do some pretty complex things in the Power Query Editor and in DAX and the error message above is the error you get when Power BI admits defeat and says it can’t translate a DAX query generated by a visual on a report into a query against your data source. 

More details: Chris Webb's BI Blog: Understanding The “We Couldn’t Fold The Expression To The Data Source” Error I...

 

PowerBI direct query connection to PostgreSQL error. OLE or ODBC error: [Expression.Error] We couldn...

OLE DB or ODBC error: [Expression.Error] We couldn... - Page 3 - Microsoft Fabric Community

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.