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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Get the number of item...
Power Apps
Suggested Answer

Get the number of items created on predefined period from a sharepoint list

(0) ShareShare
ReportReport
Posted on by 2,114 Season of Giving Solutions 2025
We need to build a report inside our Power Apps which show the following info:-
 
1) We have a SharePoint list named "Contracts", and we want to show the number of Contracts created from specific date to a specific date.
 
2) Each contract item inside the "Contracts" list has a status; "In Progress" , "Done", "Approved" & "Rejected". And we want to show the number of items at each  stage from specific date to a specific date.
 
Now i know that i can build a collection inside my Power Apps , such as :-
 
Filter(Contracts, Created > varfrom && Created < varto);
 
but this collection can only hold max of 2,000 items..
 
So instead I am planning to do the following:-
 
1) Create a Power Automate flow which accept 2 DateTime parameters ( From & To)  and which get called from Power Apps, then it get the related items using the built-in "Get Items" action which can get up to 100,000 items since we have premium license... and do the calculations and send them back to power apps..
 
So is my approach of using Power Apps with Power Automate the way to go?
 
Thanks
 
Categories:
  • Suggested answer
    Pstork1 Profile Picture
    69,665 Most Valuable Professional on at
    Yes, I would definitely suggest doing this using a flow called from the Power app. But to clarify some things. Your Premium license means you can process up to 100,000 items in an Apply to Each loop. There is no specific limit on the Get Items since you are doing them in pages.  I would recommend the following
     
    1) Limit the columns you are retrieving by using a SharePoint View. That will decrease the size of the data set you are working with and increase performance.
     
    2) Use a Filter Array action on the output of the Get Items to filter it to the subset you want to count. Then use the Length() function on that output to get the result.  Append that result to an array variable.
     
    3) Once you've got all the results calculated you can return the array you built using the HTTP Response action. You can capture it in Power Apps using a Collection.
  • Mark Nanneman Profile Picture
    993 Moderator on at
    Have you considered using Power BI?

    Another thing you could do is create new SharePoint lists to store your report metrics over time.  It could be a row for every day or every week, and then you could have columns for each category and a date column (or date start and date stop column).  Then you have a recurring flow tally the records in each category and save the numbers on your report metrics list.  Then you can access and display that information in your canvas app.

     
  • johnjohnPter Profile Picture
    2,114 Season of Giving Solutions 2025 on at
     
    Thanks a lot for the great info

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard