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 / Filter choices based o...
Power Apps
Answered

Filter choices based on lookup

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

 

Hello!

I'm currenty using a combo box which has a choices() value in it, the thing is that I would like to filter the value it shows based on conditions. For example:

Currently my items selection is 

 

Choices('Ajuste sueldo'.Proyecto)

 

But I want to filter this value, Proyecto is a lookup column from another list which on it it has a People column. I want on this combo box to appear only the Projects that the person using the app has, I thought using a lookup inside a choices column, but i cant manage to resolve it, something like this:

Choices(
 LookUp(
 'Ajuste sueldo';
 varUser in Proyectos[@'Delivery Manager']
 ).Proyecto
)

But it throws me an error saying I cant use Metadata values (referring to Proyectos[@...]

Anyone could give me a hand?

Thanks!

Categories:
I have the same question (0)
  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Try something like this:

    AddColumns(Filter('Ajuste sueldo', 'Delivery Manager' = varUser), "User Proyecto", Proyecto)

     

      "User Proyecto" is the name of the column you are adding.  You can call it anything you like.  This is the column you will use for your ComboBox.

     

    It is filtering the list 'Ajuste sueldo' based on if the 'Delivery Manager' column equals varUser.   

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the reply! 

    I dont have any column in Ajuste Sueldo called Delivery Manager, should i replace Ajuste sueldo with Proyecto? And second, Delivery Manager is a people column that accepts multiple values, that '=' should be replaced with an in?

     

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Ajuste sueldo is the name of your list, yes?    For Delivery Manager:

     

    AddColumns(Filter('Ajuste sueldo', varUser in 'Delivery Manager'), "User Proyecto", Proyecto)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have a list called Ajuste sueldo, that list has a lookup column (Proyecto) linked to another list, called Proyectos, that list has the delivery managers asigned to each project (so it has a column called 'Nombre Proyecto' and another one called 'Delivery Manager'), I want in my combobox to show a list of the Projects the person using the app has assigned.

    Am I being clearer now?

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    I just needed to verify that this was the list with the lookup column.   No you shouldn't need to replace it.   This is something I had already done in one of my apps.   The information I provided is based on that.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Okay, but if I use it like you send it to me, it says that the column Delivery manager is not recognized, and I believe it is because its not on 'Ajuste sueldo', its on 'Proyectos' list

  • Verified answer
    JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    I am not sure it's going to work the way you want.   It might be easier to just add Delivery Manager as another lookup column in 'Ajuste sueldo'

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Okay! I will do that! Thanks for your help!

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard