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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. 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
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.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors