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
wdeveloper
Frequent Visitor

Direct Query Limit Rows in Table for Export

I have a Table in my Power BI Report using direct query mode. I want to be able to identify not query the database if there will be more than 1 million rows returned due to the direct query mode limitation, or just that the data set will be too large to extract due to the 16MB uncompressed data limitation. I was thinking of creating a rowcount or identifying number of rows in the table to do this.

 

Is there a way that I can count the rows in my table, or count the rows that will be returned in the table easily? I've searched other options but all are too performance intensive because they require calculated table.

 

Is there another way that I can determine if the "filter set" is too broad to handle? I have lots of filters, so checking 1 filter is not really an option, and some filters have a significant impact vs. others are not, so I'd prefer not to check filters.

5 REPLIES 5
v-yuta-msft
Community Support
Community Support

@wdeveloper ,

 

In power query-> Transform and click count rows, you can achieve how many rows in your table. 

Capture.PNG 

 

About the second question, could you explain more about " I can determine if the "filter set" is too broad to handle"?

 

Regards,

Jimmy Tao

I am trying to dynamically count the rows in the data table visual, not the overall rows in the query table so this won't work unfortunately.


Related to the "fitler set" being too broad, basically if the table visual is going to produce too many rows to be viewed or exported.

@wdeveloper ,

 

You need to use dax instead of power query.

 

Community Support Team _ Jimmy Tao

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

 

I am using DAX.... 

@wdeveloper ,

 

Could you please share the dax code of your measure? This issue should be related to your measure.

 

Regards,

Jimmy Tao

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

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.