Thoughts, Dynamics 365, random business ideas, etc.

How to filter and sort systemusers in Power Apps

Just a short one today.

I had a combo box in Power Apps that was connected to the Users table in Dataverse. All those users with the # symbol are annoying. Also, I wanted to sort the results by name.

Expression to filter and sort systemusers in Power Apps

SortByColumns(Filter(Users, Not("#" in 'Full Name')),"fullname")

As you can see above, there’s two things going on here. First, I’m filtering the Users table to exclude records that have a # in the Full name. Next, I’m taking the results of that expression and then sorting it by the “fullname” column. I hate how Power Apps doesn’t seem to be consistent when referring to the same column, but, alas.

By adding this expression to the “Items” property in the combo box, the records that show when I type or drop down the list are filtered and sorted as I wanted.


Jake Roder

Stuck on something like this?

I’m Jake Roder. I run Tapestries Group, where we help small and mid-sized companies put AI to work and build Power BI reporting their leaders actually trust.

If you are working through something like the post above, grab 20 minutes on my calendar. No pitch, just a conversation. I answer every message personally.

Rather write? Email me.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.