cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Filter a customized dropdown based on the employees position (another column)

Hi all,

 

I am stuck currently with a customized dropdown with the name "Responsible Partner", which I would like to be able to filter based on the employeelist which is a SharePoint List with two columns: Name and Position.

 

I would ideally like to filter so that ONLY people with the position "Partner / Principal" will show up.

 

Currently I am trying this, but it gives me red scribbles underneath the "=" sign:

 

Sort(Filter('Employee List SPM'.'Name ({Name})','Employee List SPM'.Position = "Partner / Principal"),Ascending)

 

Can anyone guide me in the right direction as to what I should do?

 

This is a customized dropdown (not a combobox). I have done the same thing for a LookUp column combobox, which works with the following Items Property:

 

Filter(
    Choices('Sales Pipeline Management'.'Responsible Partner / Principal'),
    Value in Filter('Employee List SPM', Position.Value = "Partner / Principal").Name
)

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Filter a customized dropdown based on the employees position (another column)

@Anonymous 

Take a look at your syntax for the filter formula you are using.

Try changing to something like this:

SortByColumns(
    Filter('Employee List SPM',
            Position = "Partner / Principal"
          ),
    'Name ({Name})', Ascending
)

Set the Value to display of the DropDown control to "Name ({Name})".

 

This should give you the filtered list you are looking for.

 

I hope this is helpful for you.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

4 REPLIES 4
Highlighted
Super User III
Super User III

Re: Filter a customized dropdown based on the employees position (another column)

@Anonymous 

Take a look at your syntax for the filter formula you are using.

Try changing to something like this:

SortByColumns(
    Filter('Employee List SPM',
            Position = "Partner / Principal"
          ),
    'Name ({Name})', Ascending
)

Set the Value to display of the DropDown control to "Name ({Name})".

 

This should give you the filtered list you are looking for.

 

I hope this is helpful for you.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

Highlighted
Anonymous
Not applicable

Re: Filter a customized dropdown based on the employees position (another column)

@RandyHayes  thank you for your comment.

 

I have tried using your suggested formula, but that gives me even more red scribble

Highlighted
Anonymous
Not applicable

Re: Filter a customized dropdown based on the employees position (another column)

@RandyHayes,

 

I think I have left out some important information:

The "Position" column from the employee-list is a CHOICE-Column. I have tried the following filtering, but I get red scribble under "Value":

 

Sort(
    Filter('Employee List SPM'.'Name ({Name})', Value in Filter('Employee List SPM', Position.Value = "Partner / Principal").Name),Ascending
)
Highlighted
Super User III
Super User III

Re: Filter a customized dropdown based on the employees position (another column)

@Anonymous 

That formula you have is not going to yield the results you want.

Please have a go with this formula:

SortByColumns(
    Filter('Employee List SPM',
            "Partner / Principal" in Position.Value
          ),
    'Name ({Name})', Ascending
)

By the way, keep in mind that these type of filters are not delegable (you'll now see a blue scribble).  So, if you have a large list, consider you might have issues and need to rethink the strategy.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (7,593)