Lookup function for initial value

Hi there!

In my app my workers have to register โ€œOrder numberโ€, โ€œDateโ€, โ€œFrom timeโ€ โ€œTo timeโ€ in their deliveries throughout the day.
Wich expression can i use to make initial value on โ€œFrom timeโ€ to be the last registered โ€œTo timeโ€ with the match of todays date?
The app is used by multiple users so i have to incorperate โ€œuniqe userโ€ in this for them to get their last registeres and not another coworkers registration.

0 3 295
3 REPLIES 3

Steve
Platinum 4
Platinum 4

Try:

MAX(
  SELECT(
    MyTable[To Time],
    AND(
      ([_THISROW].[uniqe user] = [uniqe user]),
      (TODAY() = [Date]),
      (TIMENOW() >= [To Time])
    )
  )
)

Thank you Steve! This makes a lot of sense! Iโ€™ll try and keep you posted!

It was success! Thank u!

Top Labels in this Space