Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hi, guys!
We have observed that some of our PowerBIs are generating a strange query that our database devs say it usually takes a very long time to execute, causing disruptions.
The hallmark of a query is a WHERE condition in the style of : where POSITION((($1))::text IN ("column")::text) = ($2)
The weird thing is that in any query using that table, we aren't filtering by "column", so does anybody know when is PowerBI generating a query like that?
Thank you!
HI @evillarreal,
Which type of datasource and connection mode you used to connect database? Can you please provide detailed information about this?
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Thanks for your reply, @Anonymous!
In this case, we are connecting to a Redshift database through the ODBC connector. As far as we know, we can't send SQL queries directly with the Redshift connector so that is not an option for us.
If you need any more information, please tell me!
Regards,
Enrique
Hi @evillarreal,
Is this query only appears when you use odbc driver to get data from database? If you use original redshift connector, does this query generated?
If not, I think this issue should related to use odbc driver, I'd like to suggest your to open a support ticket to get more support for this scenario.
submit a support ticket
Regards,
Xiaoxin Sheng
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 30 | |
| 28 | |
| 25 | |
| 24 | |
| 16 |
| User | Count |
|---|---|
| 48 | |
| 32 | |
| 17 | |
| 16 | |
| 16 |