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 Apps - Building Power Apps
Suggested answer

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

(0) ShareShare
ReportReport
Posted on by 1,748 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,271 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
    989 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,748 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 671 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 424 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard