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! Request now

Reply
anioko1
Frequent Visitor

How do I get the total number(count) of a row?

I am trying to learn Power BI and I have a dataset that has more than 5 million rows. I've used the date type to filter things to start from a certain date until a certain date. How do I determine the number of rows that I have without waiting for Power BI to load them? 

 

Manually it takes forever to get the number of rows. 

1 ACCEPTED SOLUTION
ImkeF
Community Champion
Community Champion

Your question is not clear to me: Which function are you using that you are requested to give a number of rows?

If I wanted to filter a table from Date A to Date B, I'd check the date column and choose the filters there.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

3 REPLIES 3
GabrielPinzon
New Member

The best option is to create a new column that has the index starting at 1, and from this way the number of that index is the number of the record or row.
ImkeF
Community Champion
Community Champion

Your question is not clear to me: Which function are you using that you are requested to give a number of rows?

If I wanted to filter a table from Date A to Date B, I'd check the date column and choose the filters there.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

ashishrj
Power Participant
Power Participant

You can use Countrows DAX function as given here

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