Sharepoint List formatting/permissions based on Sum of a columns values in a grouping

Dávid Szilvási 1 Reputation point
2021-01-17T01:16:03.597+00:00

Hi,

I have Sharepoint list where people can submit their intent to present on a meeting.

In this list I'm grouping by the column 'Presentation date'

I have also a column called 'Time needed' with values: '10 Min', '15 Min', '30 Min'

My goal: indicate in some form to the potential presenter if on a given date there is still room for his presentation. The length of the meeting is 60 mins.

I dont know what are the possibilities within Sharepoint. I'm open to alternative suggestions in doing this.

I was thinking to either indicate via making the rows red if a day is full or not allowing new item creation for a specific date.

57364-ksnip-20210117-020841.png

Thanks for all the help!

Microsoft 365 and Office SharePoint For business Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jerry Xu-MSFT 7,961 Reputation points
    2021-01-18T07:43:31.657+00:00

    Hi, @Dávid Szilvási ,

    According to your description, we need to make SharePoint calculate all the events on the same day. If the overall time needed exceeds 60 mins, we shall provide some kind of indications about it. Please correct me if I get anything wrong.

    Per my knowledge, we need to use Power Automate to help us on this. It seems the time needed column is a choice column, so we cannot provide a Total on the view as a more easier way. If it is doable to set the time needed to be a number column, you can check about the settings on the view. Far from a perfect solution, but easy enough.
    57410-image.png
    57571-image.png

    If you have access to Power Automate, I can share my demo which works in my end. It is triggered when end user create/modify items. To avoid infinite loop, I add trigger conditions. When the creator of the flow edit the list , the flow will not get triggered. As the flow runs under the permission of the creator.

    57527-image.png57419-image.png

    Then I used a switch control to parse the choice value to actual number and get the sum.
    57544-image.png

    Finally I will update a Flag column(Yes/No Column) in the list item with the final comparison of the whole time and 60 mins
    57558-image.png

    In the list, we can add some conditional formatting based on the Flag Column. You can do it via column setting>Format this column>Conditional Formatting
    57585-image.png
    57584-image.png
    As you can see, it is a bit complex and may take some time to deploy it if you are not familiar with Power Automate. So the easy way editing view is also an option.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.