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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
stack23
Advocate II
Advocate II

Direct Query Row Limitations and Grouping

I read Direct Query has a limit of 1 million rows, but it can do rollups.

Say I do a Direct query on a SQL table

The Customertransaction table has more than 30 million rows.

 

I decide to only show productid (which only has values 1-4), and quantity sum in picture below. (not through query, but only by picking certain table columns). Will the PowerBI table do a full summation of all 30 million rows? The total row count is only 4, less than the million limit. 

 

create table dbo.customertransaction

     customertransactionid int primary key,

     customerid int,

     productid int,

     quantity int

)

productgroup.png

 

1 REPLY 1
AkhilAshok
Solution Sage
Solution Sage

For the visual you showed, if your measure is just SUM([quantity]), Power BI DirectQuery will trigger an SQL:

SELECT productid, SUM(quantity)
FROM   dbo.customertransaction
GROUP  BY product id

It should be able to return the 4 rows without any issues, eventhough your fact table is 30m.

 

The 1million row limitation comes in to play mainly when you try some DAX functions, which PBI cannot translate into respective SQL function. In that case, PBI has not option, other than brining the entire dataset and compute the DAX function in memory.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.