web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to easily get numb...
Power Apps
Unanswered

How to easily get number of rows in Dataverse Table

(1) ShareShare
ReportReport
Posted on by 932 Moderator

Is there anyeasy way to get the number of dataverse table rows using the UI ? 

I have the same question (2)
  • Verified answer
    Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @abouchaalaBAIT ,

    Here is an article providing some options:  https://nishantrana.me/2020/05/27/different-ways-of-getting-record-count-total-in-dynamics-365/ 

     

    What I usually do is create a basic chart for the entity with count of the primary name and the status as the horizontal coordinate and I can pull up a view to quickly see the counts with the "Show Chart".

    Screen Shot 2022-10-04 at 4.56.25 AM.png

     

  • abouchaalaBAIT Profile Picture
    932 Moderator on at

    abouchaalaBAIT_0-1664878625151.png

    Thanks @dpoggemann , apparently this does not work on large dataverse tables. I have more than 4 millions rows in a single table. Is there other options in my case ? 

     

     

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @abouchaalaBAIT ,

     

    When building the chart try selecting a view (for the preview) that will have limited records, you should be able to create the view and then still see the chart live on the view with all records.  Please let me know if this does not work...

  • Hauke Jacobsen Profile Picture
    64 on at

    Hi @abouchaalaBAIT ,

    I suggest to use a Power BI DirectQuery dataset in a Dashboard for this purpose.

    1. Create a new Power BI Dataset in Power BI Desktop using a SQL Server DirectQuery (TDS endpoint) to your environment.

    2. Use a simple "select count(*) alias_column from dataverse_table;" as a SQL Statement

    powerH_0-1664890571326.png

    3. Import the created dataset into Power BI Workspace and save. This will create a new Power BI Dashboard for you.

    4. Go to Dashboards > New > Power BI Dashboard.

    powerH_1-1664890708618.png

    5. Select the workspace you created the Power BI Dashboard with the DirectQuery datasource and click on Save.

    6. When the Dashboard has been created, you can open the report and you will see the total number of records in the report. The number is based on the privileges the user has. A system administrator will see all rows in the table being returned.

    powerH_2-1664890849227.png

    Best regards

    Hauke

     

     

  • abouchaalaBAIT Profile Picture
    932 Moderator on at

    Unfortunatly, it doesn't work for me

  • abouchaalaBAIT Profile Picture
    932 Moderator on at

    Thanks @powerH , 

    Databasename should match my envirement name, right ? 

    abouchaalaBAIT_0-1664893151675.png

     

  • Hauke Jacobsen Profile Picture
    64 on at

    Hello @abouchaalaBAIT ,

    It is indeed the Unique Name from the Developer Resources:

    powerH_0-1664905835352.png

    Make sure that TDS endpoint is enabled in your environment settings:

    powerH_0-1664906162836.png

    Best regards

    Hauke

  • Ashish Vishwakarma Profile Picture
    7 on at

    Maybe a little late to respond but I have created a browser-based tool for the same. https://AshishVishwakarma.com/DataverseRowsCounter/ Please have a look.

  • carlilelance Profile Picture
    351 on at

    I don't know what limitations it has, but if you select "edit -> edit in Excel", then open your dataverse table in Excel, then scroll or jump to the end of the Excel file, it will give you a row count :).

     

    Edit: the limit on Excel is 100,000 rows. None of the above solutions seem very "citizen developer" to me, so I wrote a Power Automate flow that gives the answer. It's really basic. You list the rows, then compose the length. Don't forget to turn on pagination in the list rows step or it will limit the records to 5000. This has the same 100,000 row limitation, unfortunately. 

  • Craig_Humphrey Profile Picture
    186 on at

    That's really cool, but feels like bit of a security risk.  Any chance you can make the code available, so we can host it ourselves and not have authentication/data going via your website?

     

    Thanks

    Craig

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard