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 combo boxes for...
Power Apps
Answered

Filter combo boxes for a specific user and status, if user is selected

(0) ShareShare
ReportReport
Posted on by 304

Hello,

I'm currently working on a SP list form that contains multiple combo boxes, which are linked to items in other lists, and a user field. 

I filtered the combo boxes to only show the items that have "Handed out" in status column, which is a choice field. I used the following functions:

 

Distinct(Filter(Computers; Status.Value = "Handed out"); 'Asset ID')

 

 

 

That works fine so far.

 

Now I want it to also filter for the user that is selected in my user field on the formula. And when no user is selected, it should ignore the user-filter and only filter for the status.

I tried to do it with an if function and IsBlank and nest it all together somehow, but I always failed. 

 

Can somebody help me with that?

 

Categories:
  • NPPlatform Profile Picture
    606 Moderator on at

    Hi @LisKr , it should be something like this:

     

     

    Distinct(Filter(Computers; Status.Value = "Handed out"; OR(UserColumnInDataSource = YourUserComboBox.Selected.Value;IsBlank(YourUserComboBox.Selected.Value))); 'Asset ID')

     

     

  • LisKr Profile Picture
    304 on at

    Sadly there are a few errors:

    LisKr_1-1708439056853.png

    at "=" it says something like "some types can't be compared: Record, Error"

    at value it says "value isn't recognized"

    at IsBlank it says "the function IsBlank has invalid arguments"

     

    What did I do wrong?

     

    Edit: for "UserField.Selected." it suggests Claims, Department, DisplayName, Email, JobTitle, Picture as ending, value seems to not be supported there?

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @LisKr,

    So User is a Person column in your SP list, right?

    Modify your formula as below:

    Distinct(Filter(Computers; Status.Value = "Handed out";IsBlank(UserField.Selected)||User.Email=UserField.Selected.Email); 'Asset ID')
  • LisKr Profile Picture
    304 on at

    That's exactly what I needed. Thank you very much!

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 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard