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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Helper IV
Helper IV

‘Couldn’t fold the expression to the data source’

Hi all, 

I've built a report based on a SQL db, published to BI service via an on-prem gateway. 

When I view it online the top two visuals on my report page are fine and the bottom two have 'error cannot be loaded' - same data source but the bottom has a report filter. If we switch to Import mode it displays correctly, switching back to DirectQuery it once again errors, help! 

The subject line of this post is the error we've managed to get from a trace we applied, which Microsoft analysed for us but it's gibberish to me as I don't understand how I need to apply any fix when two of my charts are fine and two other aren't, and it's the same data source going through the same gateway?!

Community Support
Community Support

Hi @Gingerjeans88 ,


Please take a look at this blog and check if it is helpful. 


Best Regards,


Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Hi @Gingerjeans88,


the error message says that Power BI is not able to generate the SQL query needed for the visual.

Therefore, the question is which Power Query transformations and DAX calculations are included in the visual query.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast

Helpful resources

Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City


Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors