cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JimboSey
Post Patron
Post Patron

Calculate an average time taken to complete a project

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. 

1 ACCEPTED SOLUTION

Accepted Solutions
v-JessicaG-msft
Community Support
Community Support

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

View solution in original post

1 REPLY 1
v-JessicaG-msft
Community Support
Community Support

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

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,157)