cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MichelleH
Helper II
Helper II

CountRows incorrectwith dataverse table

Hi,

 

I am trying a very simple countrows function with dataverse table name but it is definitely incorrect.  I have 649 rows in table and it says 850.  I have refreshed (both sides)and disconnected table to powerapps and reconnected, but it still shows the wrong count.

 

Anyone else had this issue?

2 REPLIES 2
ChrisPiasecki
Super User
Super User

Hi @MichelleH,

 

Did you confirm the 649 rows represented the entire set and was not filtered to show just Active records? You can confirm by querying the table via the Dataverse Web API.

 

To do so, go to to the maker portal. Under Dataverse, Tables,  select your table. Next to Table Properties, select Tools, then API link to table data. In the new window that opens, modify the url in the address bar by removing "top=10" and replace it with "count=true". In the JSON result on the page, find "@odata.count", which will tell you the record count.

 

Note that the query only returns 5,000 records at a time, so if you have less rows than that in the table then that count is the total.

 

---
Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

rampprakash
Super User
Super User

Hi @MichelleH 

 

Try below steps to find out how many records available

 

Navigate to https://make.powerapps.com

Select Respective environment

Click Gear icon at the top of menu bar

Select Advance Settings

Once the Page loaded click Filter icon at the top(Advance find)

Select LOOKFOR as Table name

Remove all the condition and click Result 

 

By this way you can able to see the count of Table Rows

 

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Users online (2,476)