Giter Site home page Giter Site logo

Times about powerapps HOT 4 CLOSED

barne77 avatar barne77 commented on July 29, 2024
Times

from powerapps.

Comments (4)

barne77 avatar barne77 commented on July 29, 2024

Filter(Desks,Not(Title in Filter(
'Desk Reservations',
startTime>=Min(CheckOutFrom,CheckOutTo) && startTime<=Max(CheckOutFrom,CheckOutTo) ||
endTime>=Min(CheckOutFrom,CheckOutTo) && endTime<=Max(CheckOutFrom,CheckOutTo)
).DeskText))

from powerapps.

Z4YA avatar Z4YA commented on July 29, 2024

Filter(Desks,Not(Title in Filter(
'Desk Reservations',
startTime>=Min(CheckOutFrom,CheckOutTo) && startTime<=Max(CheckOutFrom,CheckOutTo) ||
endTime>=Min(CheckOutFrom,CheckOutTo) && endTime<=Max(CheckOutFrom,CheckOutTo)
).DeskText))

Thanks for this but I've noticed that it's not accurate either.
For example when you book 9am to 10am on desk 1 and then you try book for 10am to 11am on desk 1, it will not be available.

from powerapps.

GGILLET avatar GGILLET commented on July 29, 2024

Hi @aprildunnam ;

For this function :


Filter(Desk_DSI;Not(Title in Filter(
    Desk_Reservations_DSI;
    startTime >= Min(CheckOutFrom;CheckOutTo) && startTime <= Max(CheckOutFrom;CheckOutTo) || endTime >= Min(CheckOutFrom;CheckOutTo) && endTime <= Max(CheckOutFrom;CheckOutTo) ||
    startTime <= Min(CheckOutFrom;CheckOutTo) && startTime <= Max(CheckOutFrom;CheckOutTo) || endTime <= Min(CheckOutFrom;CheckOutTo) && endTime >= Max(CheckOutFrom;CheckOutTo)
    ).DeskText))

Desk 1 booked 9am to 11am

If I Try :

  1. 9am to 10am : OK Desk 1 isn't available.
  2. 9am to 12pm : OK Desk 1 isn't available.
  3. 9am to 1pm : OK Desk 1 isn't available.
  4. 8am to 9am : OK Desk 1 isn't available.
  5. 8am to 10am : OK Desk 1 isn't available.
  6. 8am to 11am : OK Desk 1 isn't available.
  7. 8am to 12pm : OK Desk 1 isn't available.
  1. 11am to 12pm : KO Desk 1 isn't available.
  1. 12pm to 1pm : OK Desk 1 is available.

Can you help me with this case (8) please?

Guillaume

from powerapps.

GGILLET avatar GGILLET commented on July 29, 2024

Solution :

Filter(
Desk_DSI;
Not(
Title in Filter(
Desk_Reservations_DSI;
CheckOutFrom >= startTime && CheckOutTo <= endTime || CheckOutFrom <= endTime && CheckOutTo >= endTime
).DeskText
))

from powerapps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.