This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Direct queries that include columns with string type with an AWS Redshift source do not work. It works when in import mode. What is going on? The error message is "
Error fetching data for this visual
OLE DB or ODBC error: [Expression.Error] We couldn't fold the expression to the data source. Please try a
simpler expression ..
"
Solved! Go to Solution.
There are no transformations involved.
When I change the data type i Redshift from string to varchar(x) then it works.
There are no transformations involved.
When I change the data type i Redshift from string to varchar(x) then it works.
Hello @Krystian_overga ,
Could you please share your applied steps for redshift data in Transform data. I can give more correct comments. However, I assume that you applied steps that some of them doesn't fold for example replace error, remove duplicate cannot fold. Whenever, you use the steps that cannot support query folding, Power bı wants to switch direct query storege mode to import mode.
More information about query folding:
https://learn.microsoft.com/en-us/power-query/query-folding-basics
https://medium.com/microsoft-power-bi/boosting-power-bi-performance-with-query-folding-techniques-75...
Kind Regards,
Gökberk Uzuntaş
📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!
🔗 Stay Connected:
📘 Medium |
📺 YouTube |
💼 LinkedIn |
📷 Instagram |
🐦 X |
👽 Reddit |
🌐 Website |
🎵 TikTok |
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 25 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 28 | |
| 23 | |
| 23 |