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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User
Super User

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
Super User
Super User

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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