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 with multiple c...
Power Apps
Answered

LookUp with multiple conditions

(0) ShareShare
ReportReport
Posted on by 36

Hello,

I have a small app that it has been working for a day but yesterdey it stop working..

I am analyzing the formula and I don't understand some things...

There is an image whose visible property depends on certain conditions being met in a Sharepoint list

This is the formula that it has been working:

If(LookUp('MyList'; MyUser=User().FullName && MyDate=Today(); ReturneText)="Value1";true;false)

Now,

LookUp('MyList'; ID=1; ReturnedText)

It find data ReturnedText is correct.

 

LookUp('MyList'; ID=1 && MyUser=User().FullName; ReturnedText)
or
LookUp('MyList'; ID=1 && MyDate=Today(); ReturnedText)

Any of these two formulas don't work. First, ReturnesText is false and second, is empty.

SharePoint listitem with ID = 1, MyUser field is me and MyDate is today.

 

Any help Will be apreciated.

Regards.

Categories:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @vanels 

    One thought, is it possible that you are running into a delegation problem.  To test for this, change the formula by adding a Sort()

     

     

     

    If(LookUp(Sort('MyList'; ID;Descending); MyUser=User().FullName && MyDate=Today(); ReturneText)="Value1";true;false)

     

     

     

    and see if it works. By the way, how many items do you have in 'MyList'? Put a CountRows('MyList') in a label somewhere on the screen and let me know what it shows. 

  • vanels Profile Picture
    36 on at

    Hello,

     

    Yes, it works! I don't understand why but it works.

    I have to put Text(MyDate)=Text(Today())…. now without Text() it doesn't Works.

    The CountRows say 500 and if I add a new ítem to the list, the count doesn't increase...

     

    Many thanks!

  • A.G Profile Picture
    Microsoft Employee on at

    Make sure the column is searchable the Dataverse table.

    agasmi_0-1680378302258.png

     

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 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard