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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Budfudder
Helper IV
Helper IV

Direct Query Not Returning All Rows

I'm betting there's something I don't know here. I am loading a table using an SQL statement, using Direct Query. The table has over 180,000 rows - but no matter what I do, it returns 34,000 rows only.  All my visuals, etc., act only on 34,000 rows.

 

What am I doing wrong?

1 ACCEPTED SOLUTION
Seward12533
Solution Sage
Solution Sage

Have you checked to see if any of your records are returning errors. What do you see if you look in the Table View of PowerBI? Does it only hve the 34000 there? You can also write a measure to check TotalRows = COUNTROWS(table).  You can check in PowerQuery by selecting your query and choose KEEPERRORS, shoudl return a blank result if there are no errors.  

 

If that isn't the issues your measures may be returning NULL so nothing will be displayed. 

 

Another option is your have bridge table that does not have all the values in it and it will force the filter context down into the tables and effectively ignore anything that does not bridge between the two.  A Pic of your Data Model to see how the tables are related as well as what measures you using etc.. will really help us help you. 

View solution in original post

3 REPLIES 3
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Budfudder,

 

Could you mark the proper answer as a solution please?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Budfudder,

 

One more tip: duplicates will only show up once.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Seward12533
Solution Sage
Solution Sage

Have you checked to see if any of your records are returning errors. What do you see if you look in the Table View of PowerBI? Does it only hve the 34000 there? You can also write a measure to check TotalRows = COUNTROWS(table).  You can check in PowerQuery by selecting your query and choose KEEPERRORS, shoudl return a blank result if there are no errors.  

 

If that isn't the issues your measures may be returning NULL so nothing will be displayed. 

 

Another option is your have bridge table that does not have all the values in it and it will force the filter context down into the tables and effectively ignore anything that does not bridge between the two.  A Pic of your Data Model to see how the tables are related as well as what measures you using etc.. will really help us help you. 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors