Im trying to filter value to be displayed in a dropdown box.
I want to filter from a SharePoint list and this works fine.
Example above i filter from list displays Vendors based on Title
Now i want to Filter Model based on Vendor and Title.
Currently my filter for the Model field looks like this.
With the above i will get all results that matches the Vendor but i want it to distinct not only vendor but also Title.
If the a Vendor for example Microsoft has 500 models then all is showend. But i want to filter like this.
If Title is = TV and Vendor is Microsoft show only models that are TV and Vendor Microsoft.
Solved! Go to Solution.
As you are aware, Distinct() can only create a single column table. However, you can use the GroupBy() function to accomplish your goal. see https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-groupby This function can use multiple columns to group the data and you can then filter it on those columns. You can reshape the data in the other columns by using the shaping functions to only show the other columns that you are interested in. see https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-table-shaping. Be aware that these functions are not delegatable in SharePoint so if you have a large list, the resulting tables may not be complete.
Read the announcement for more information!
Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.
Features releasing from October 2019 through March 2020
Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications