cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tbrantley
Level: Powered On

Filter Browse Gallery

I am trying to filter the list “DOT List” to only show items that the current user has created and complete is = “No”.

 

The function below is not working. For some reason the items section will not find the Created By column?

 

Filter('DOT List', CreatedBy.DisplayName  = Office365Users.MyProfile().DisplayName And Complete = "No")

 

cap2.PNG

 

Any help with this?

1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft Employee

Re: Filter Browse Gallery

I believe the following page should contain al lthe information you need. 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-sort

 

View solution in original post

5 REPLIES 5
Microsoft Employee

Re: Filter Browse Gallery

Please apply the following change to your formula:

Filter('DOT List', 'Created By'.DisplayName = ...

tbrantley
Level: Powered On

Re: Filter Browse Gallery

Hi, @dinusc

 

Still not getting any results back. Take a look at the screenshots below.

 

Capture3.PNGCapture2.PNG

Microsoft Employee

Re: Filter Browse Gallery

I assume you can see the values in the gallery if you remove the filtering function.

Please inspect all the parameters involved in the filtering condition. Try removing conditions (leave only first equality then only the second equality) to see which one causes the problem. Inspect values to ensure they're in the same format (letter casing or extra spaces?). You may need to use Trim() or Upper() functions.

When inspecting in PowerApps, I usually try to bind the values to simpler controls:

Label1.Text=Office365Users.MyProfile().DisplayName

ListBox1.Items='DOT List' and then set the "value" in the advanced property panel on the right to "Complete".

tbrantley
Level: Powered On

Re: Filter Browse Gallery

@dinusc

 

I figured out a way to make it work.

 

How do I sort in descending order?

 

Filter('DOT List', StartsWith(Truck_x0020_Number, TextSearchBox1.Text), createdForm.DisplayName = User().FullName)

Microsoft Employee

Re: Filter Browse Gallery

I believe the following page should contain al lthe information you need. 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-sort

 

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 163 members 5,809 guests
Please welcome our newest community members: