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 Apps / Lookup list for multip...
Power Apps
Answered

Lookup list for multiple conditions

(0) ShareShare
ReportReport
Posted on by 83

Hi,

 

I'm trying to make a formula that search in a list if the are 3 conditions : operator name is as selected(label7_25), Start field (datetime value field) is not empty and Stop field (datetimevalue field) is empty; so to see if an operator is working on a job.

 

It's not working like that. If I leave only Label=Operator and take out start and stop, it's giving me an answer but I need also those 2 conditions to be met.

 

LookUp(CentralizareTLSC2021,Label7_25.Text=Operator.Value && !IsEmpty(Start) && IsEmpty(Stop),Text(Masina.Value))

 

Thanks

Categories:
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @SergiuTPLS ,

    Try this

    Text(
     LookUp(
     CentralizareTLSC2021,
     Operator.Value = Label7_25.Text && 
     Value(Start) > 0 && 
     Value(Stop) > 0
     ).Masina.Value
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • SergiuTPLS Profile Picture
    83 on at

    this conditions are not ok

    &&

    Value(Start) > 0

    && Value(Stop) > 0

     

    I've tried with IsEmpty, IsBlank it's still not working.

     

    Start value is 07.11.2021 09:30

    Stop value is empty (operator still doing the job)

     

  • AmeerJab Profile Picture
    370 on at

    Hello,

    try the same formula as @WarrenBelz wrote but if you have issues with && use the AND function

    ex: AND( condition 1, condition 2, condition 3)

    Hope this help,

    Regards.

  • SergiuTPLS Profile Picture
    83 on at

    The start value is blank from what it appears, but in the list the value is 07.11.2021 09:30

    the syntax of calling the Start value is the problem I belive

     

    SergiuTPLS_0-1636276762854.png

     

  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    @AmeerJab ,

    What is your data source and what type of fields are Start and Stop? It also appears you have the current data/time (I assume you are in NZ) in the list value. 

  • SergiuTPLS Profile Picture
    83 on at

    Start and Stop are DateTime fields

    Time zone is +2.00 (Bucharest, Romania)

    the condition is not related to the value of the Start but to the presence of Start and absence of Stop(operator is working on a job)

  • AmeerJab Profile Picture
    370 on at

    if you try to store the start value in a variable and then use it, just to make sure that you're passing it, and is there a start value for each record? or it's just one for all the records? 

  • Verified answer
    WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    @SergiuTPLS ,

    I guessed NZ but forgot the PM (NZ is UTC + 12), but that is not relevant. If you want Start with a value and stop without one and they are Date fields

    Text(
     LookUp(
     CentralizareTLSC2021,
     Operator.Value = Label7_25.Text && 
     Value(Start) > 0 && 
     Value(Stop) < 1
     ).Masina.Value
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • SergiuTPLS Profile Picture
    83 on at

    Thank you big time!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard