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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Calculating number of ...
Power Automate
Unanswered

Calculating number of items and increase value in another list

(0) ShareShare
ReportReport
Posted on by 2

Hello, team.

 

I have two lists in sharepoint, in one of them people are booking accomodations, but accomodation can contain few peoples and I should get possibility to choose only frees accomodation.

So, as I understand, I should create a lookup column that will be see a date for each column from now to now+1 month and added 1 to column with TotalPeople@Accomodation. After that Power Apps can show in dropdown list accomodations with TotalPeople<MaxPeople only.

That's right? If it is, can I do that in Flow, or I can use some sharepoint instruments?

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @Genny,

     

    Could you share more details on the two lists?

    To calculate number of items in a list, we could use function length to return the number of items in a collection.

    A simple flow for your reference:

    1.PNG

     

    Best regards,

    Mabel

  • Genny Profile Picture
    2 on at

    So,

     

    I have one list, that contain next columns:

    Created By

    Date of Arrival

    Date of Departure

    City of Arrival

    Accomodation for booking

     

    Another list contains:

    City

    Staff

    Current number of people at accomodation

    Maximum allowed people at accomodation

     

    What I want to do:

    When someone create an Item in first list, in dropdown list them can see only Accomodations that can satisfy two conditions:

    1. Accomodation are belong to city that was choosed in previous dropdown list in same form.

    2. Accomodation are have at least one free place (that mean current number of people for all dates between date of arrival and date of departure less than maximum allowed number of people for that accomodation).

     

    So, looks a bit complicated, but I think I can explain all what I want.

    Of course, that feature should work continiously, updating one time in a day or when anybody adding/deleting item.

    I found something similar in powerapps theme (https://powerusers.microsoft.com/t5/General-Discussion/Check-Date-Availability-for-a-Sharepoint-item-and-then-change/m-p/42729#M17710), and for now looking for most optimum solution.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard