web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Views Sort Column Filtering Behavior

(0) ShareShare
ReportReport
Posted on by 40

I have a view which has several fields.  Also, I have a couple other fields in the view from a related (foreign) table.

I notice in general, it appears if I sort by a column in the main table that the filter criteria filters by that column.

For example, if I have a Name column (and sort by that one) in the main table with three names: John, Larry and Susan, if I type in an L in the main Search this view area or click on the letter L in the alphabet bar, it will filter the results to show me only Larry.

Let's say there is a foreign table associated with an ID.  On that foreign table is something like Customer Location.  Let's say John is Denver, Larry is Minneapolis and Susan is Phoenix.

I can have the view set so it would display those as well.  In this scenario, I can click on Customer Location and it would sort as expected.

However, now if I would try to do something like search for D, it wouldn't find Denver or if I searched for M it wouldn't find Minneapolis.

What it appears to do is filter off the primary key on the main table in these types of scenarios instead.

Is there a way to override or apply some custom logic (maybe addCustomView??) so that the main search area is tied into a related (foreign) field?

In one article I found, there is mention of an out of the box js file called formcontrol.js with a parameter called requireSortResults.  Sounds like this is set to true by default and may be part of the reason why sorting seems to happen on the primary field instead of foreign fields.  

Any suggestions or tips?

I am running 2020 release wave 1 - Version 1710 (9.1.0.18353) online

I have the same question (0)
  • Suggested answer
    kunihih Profile Picture
    on at

    As far as I know there is no supported way to override the behavior of column filters. Have you considered using the Advanced Filtering option that was introduced in wave1? With this you can define filters on columns in related entities. 

    https://docs.microsoft.com/en-us/powerapps/user/grid-filters-advanced

    pastedimage1593739418369v3.png

    pastedimage1593739734263v1.png

  • jlmccormack Profile Picture
    40 on at

    The Advanced Filtering does allow me to filter the list on a criteria on a column in a related table.  However, what I was hoping to be able to do was something like sort on one of the related columns.  Then type something in the Search this view or click on an item in the Alphabet tab and see the filtered entries there.  So in the EntityA/EntityB example, when looking at EntityB as the main table, I would have Number displaying as one of the columns.  Click on Number to sort.  Then go up to Search this view type in something like 5.  Then anything matching 5 from that related table field would display.  Sounds like out of the box this is normally not possible.  Was thinking maybe this could be done with some type of a custom view or javascript.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans