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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
rhashhab
Frequent Visitor

The Results of Query is not the same in My SQL and Power BI

I have noticed a sudden probelm in my Power BI report. The results of My SQL query when I run it on My SQL is not the same when I connect the same query to Power BI. It gives me different results for some rows.

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @rhashhab ,

 

Did you try to use the same sql query at the following location when connecting to the data source and see if the data displayed after the connection is always the same?

vhenrykmstf_1-1656495543951.png

 

Also what is your join mode and the specific query statement, this cause can be a problem due to query folding.

vhenrykmstf_2-1656496069562.png


If the problem is still not resolved, please provide detailed error information and related operation screenshoots. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @rhashhab ,

 

Did you try to use the same sql query at the following location when connecting to the data source and see if the data displayed after the connection is always the same?

vhenrykmstf_1-1656495543951.png

 

Also what is your join mode and the specific query statement, this cause can be a problem due to query folding.

vhenrykmstf_2-1656496069562.png


If the problem is still not resolved, please provide detailed error information and related operation screenshoots. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

amitchandak
Super User
Super User

@rhashhab , You need to share an example. Power bi data is by default grouped. So row will grouped based on not summarized columns and data will aggregate for numeric /summarized columns

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

For example , when I run the SQL query on SQL , it gives me the following :

For date 2022-01-01 , the number of transactions is 10. 

 

However, when I run the same query on Power BI, it gives me for the same row : for date 2022-01-01 , the number of transactions is 5. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors