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 - return result...
Power Apps
Answered

Lookup - return results from other list with two requirements

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi! 

 

I'm stuck on this one, I've searched everywhere and I know I'm close but I cant quite seem to find the correct formula to get this to work. I created a SharePoint lookup column that is linked to another list, in PowerApps I am able to return the results of the needed column but I need to get even more granular with my results. 

 

For Example, on the list that I am connecting to, there is a Application column and a updated column. I need to return the results for everything in the Updated column that equals "Yes".

 

In the DataCardValue card I have set the Items field to SortByColumns('Dataset Name'.Application, "Title"). How can i add the Updated column data and exclude everything that is not set to "Yes"? Any help would be greatly appreciated 

Categories:
  • Verified answer
    rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @Anonymous try SortByColumns(Filter(Dataset,Updated="Yes").Application,"Title",Ascending)

     

    Hope it helps

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I've tried that but doesn't seem to work. The formula doesn't return any errors but no data is being pulled in to the dropdown. Wonder what's missing

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    The formula you are trying is returning a single column table with the column named "Application".  Then you are trying to sort on the Title column....it does not exist!  Only the Application column.

    Change your formula to the following:

    SortByColumns(Filter(Dataset, Updated="Yes"), "Title").Application

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Actually, i think i got it. I removed the " " around Yes and it works now. Thanks for your help! 

  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @Anonymous  text search is case sensitive so Yes does not equal yes. 

     

    here the combobox items = SortByColumns(Filter(colSomething,state="yes").name,"name",Ascending). the left gallery display's collection colSomething wher eyou can see state and name

    rubin_boer_0-1623183659750.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 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard