web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Lookup dropdown based ...
Power Apps
Unanswered

Lookup dropdown based on true/false field in the list being looked-up:

(0) ShareShare
ReportReport
Posted on by 18

While working to put together a data tracking system for projects, I'm in need of assistance with a lookup field which references the personnel assigned to the case.  Due to retaining information on cases for a few years, the list of assigned personnel is rather long, and not everyone on that list still works within this unit.  The Lookup dropdown references a SP List (image below) which lists all analysts assigned, but also includes a true/false field to indicate whether they are current personnel.
help1.jpg
Is it possible to script the Lookup dropdown to reference whether the CURRENT field is TRUE, and then only show those personnel on the dropdown to be chosen from?  Any assistance is greatly appreciated.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,117 Most Valuable Professional on at

    Hi @bsamms ,

    Yes - actually I have exactly the same process with team staff as our organisation is to large to use the built-in functions.

    Your filter will cause a Delegation warning, but should not matter if under 2000 items. Your drop-down will be a Collection

    ClearCollect(
     YourCollectionName,
     Filter(
     CaseTracker_AnalystList,
     Current=true
     )
    )

    If you want to get no warning, and also Sort, do this

    ClearCollect(ColTemp,CaseTracker_AnalystList);
    ClearCollect(
     YourCollectionName,
     Sort( 
     Filter(
     colTemp,
     Current=true
     ),
     'A LName'
     Ascending
     )
    );
    Clear(colTemp)

     

    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.

  • bsamms Profile Picture
    18 on at

    Warren, thanks for taking the time to respond.  Unfortunately, I've only been learning to work with SharePoint and PowerApps for a few days now, and I don't have the knowledge or experience to implement your solution.  I believe I figured out how to implement the collection dropdown, as my input datacard now indicates it is a Combox Box with a linked data source (the CaseTracker_Analyst list), but I have no idea where to place your scripts for them to function.  I'll continue trying to work it out, and update this thread to benefit other beginners if I come across the solution prior to any additional response.  Thank you.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard