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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
lastephanieee
Regular Visitor

Ghost queries from MySQL

Hello everyone,

 

Does someone know how and why I am getting ghost queries in my power query?

The record does not exist in the DB, I have tried running the query though the DB, but yet when I run it in Power Query I get null values for most of the columns and some values for some.

 

Please explain to me how can this happen.

 

Thanks a lot.

 

Kind regards,

S

1 ACCEPTED SOLUTION

Hi @lastephanieee,

 

The issue here might be caused by power query cache, joins, or transformations. Please try below steps:

  • Clear power query cache and refresh the query preview, close and reopen the power bi.
  • Check if the power query uses a JOIN which results in unmatched/null rows.
  • Inspect query generated in power query, use View Native Query if available. Try running that exact SQL manually in MySQL directly to compare results.
  • Check if the query uses views or triggers, if you are querying a view or a table with triggers, they might return unexpected rows.
  • Make sure you are using the latest MySQL ODBC or .NET connector to avoid compatibility issues.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

View solution in original post

7 REPLIES 7
lastephanieee
Regular Visitor

Not found a solution yet.

Hi @lastephanieee,

 

The issue here might be caused by power query cache, joins, or transformations. Please try below steps:

  • Clear power query cache and refresh the query preview, close and reopen the power bi.
  • Check if the power query uses a JOIN which results in unmatched/null rows.
  • Inspect query generated in power query, use View Native Query if available. Try running that exact SQL manually in MySQL directly to compare results.
  • Check if the query uses views or triggers, if you are querying a view or a table with triggers, they might return unexpected rows.
  • Make sure you are using the latest MySQL ODBC or .NET connector to avoid compatibility issues.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

Hi @lastephanieee,

 

As we haven’t heard back from you, we are closing this thread for now. If you have any further issue, please raise a new thread in the community forum, we are ready to assist you on it.

Thank you for being part of Microsoft Fabric Community.

 

Thanks and regards,

Anjan Kumar Chippa

v-achippa
Community Support
Community Support

Hi @lastephanieee,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Thank you @Deku for the prompt response.

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the super user resolved your issue? or let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @lastephanieee,

 

We wanted to kindly follow up to check if the solution provided by the super user resolved your issue.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @lastephanieee,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the super user resolved your issue.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Deku
Super User
Super User

Hard to say without seeing the query. PowerQuery does like to shoot out queries to determine schema

 

Please see this blog post on the topic


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors