Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Display lookup value in dropdown, filtered on another lookup column

(1) ShareShare
ReportReport
Posted on by 19

I only want to show projects in a dropdown in which the current user of the app is a part of.

 

My setup (build in Dataverse):

 

Table "Projects" where each project are stored, [ProjectName]; [ProjectID]; [Projectmanager]; ect.

Table "User" - standard table with user information

Table "Projectmembers" where each project member in the projects are stored with columns:

  1. [ProjectID] - lookup to table Projects
  2. [Projectmember] - lookup to table User

Variable: Set(currentUser,User()); 

 

The task is a dropdown or combo box where the user only can select projects of which they are a member of (single select).

 

The function should be something like, which of course does not work:

Filter(Choices([@Projectmembers].ProjectID).'Project Name',ThisRecord.Projectmember.FullName=currentUser.FullName)

 

Maybe a completely different setup is needed to make it work? I thought it should be pretty simple, so what am I missing here?

 

  • Verified answer
    v-jefferni Profile Picture
    v-jefferni on at
    Re: Display lookup value in dropdown, filtered on another lookup column

    Hi @schmucker ,

     

    In this case, we always need to clarify the logic first. As you are using Dataverse and based on your description, in Projectmembers table one project should be with multiple members. So you will be able to get all projects by following formula:

    Filter(Projectmembers, Projectmember.'Full Name' = currentUser.FullName).ProjectID

     

    You can try and use it for Items of Dropdown or Combo box and set the desired display field.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard