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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Krystian_overga
New Member

AWS Redshift string column type and Direct Query i PowerBI desktop

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 ..

 

"

 

1 ACCEPTED SOLUTION
Krystian_overga
New Member

There are no transformations involved. 

Krystian_overga_0-1733753972743.png

 

When I change the data type i Redshift from string to varchar(x) then it works.

View solution in original post

2 REPLIES 2
Krystian_overga
New Member

There are no transformations involved. 

Krystian_overga_0-1733753972743.png

 

When I change the data type i Redshift from string to varchar(x) then it works.

uzuntasgokberk
Super User
Super User

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 |

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.