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

Community site session details

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

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

(0) ShareShare
ReportReport
Posted on by 1,803 Super User 2024 Season 1
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:
I have the same question (0)
  • Suggested answer
    Pstork1 Profile Picture
    68,678 Most Valuable Professional on at
    Get the number of items created on predefined period from a sharepoint list
    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
    991 Super User 2025 Season 2 on at
    Get the number of items created on predefined period from a sharepoint list
    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
    1,803 Super User 2024 Season 1 on at
    Get the number of items created on predefined period from a sharepoint list
     
    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

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 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard