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 / Calculate an average t...
Power Apps
Answered

Calculate an average time taken to complete a project

(0) ShareShare
ReportReport
Posted on by 321

Hello, 

I have an Workplan App to keep track of all my teams projects. On the main screen I have a gallery which lists all the current projects from my SharePoint list.

 

Within the gallery I have a label for project start date and a label for the project end date (which link to the start/end dates in the SP list, they are date/time columns).

 

Each project has a catagory, for this lets say we have the following catagories 'Catagory1', 'Catagory2' and Catagory3' in reality there will be more than this.

 

Id like to have another screen, where I want to have a gallery that filters by catagory from the main gallery on the main screen. I want the gallery to filter by catagory, I then want to work out from the start/finish date for each project within that catagory what the average number of days it has taken to complete the projects within that catagory.

 

Any help greatly appretiated. 

Categories:
I have the same question (0)
  • Verified answer
    v-JessicaG-msft Profile Picture
    on at

    Hi @JimboSey ,

     

    You could create a "vardata" collection in Gallery1 to save records for items of the same type, and another "t1" collection to save the completion days for each project. Set  Gallery2 data source to the "vardata" collection, and use the "Average" function to calculate the average of the "t1" collection. I have a test for you reference, please refer to this workaround:

     

    vJessicaGmsft_0-1644389954802.png

    vJessicaGmsft_1-1644390006793.png

    vJessicaGmsft_2-1644390108465.png

     

     

    Best Regards,

    Jessica Gu

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard