cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Patron
Post Patron

browse gallery Filter [Me]

Hi All,

Is there a way to filter the browse gallery to only display what the current user entered for this month?  I would like to keep the default  search filter as well.

 

Thanks,

Joe

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: browse gallery Filter [Me]

Hi @joef ,

 

Do you know how to limit the call to just the items the current user added this month? 

Please use below formula:

Filter(your_datasource_name,'Created By'.Email=User().Email,Created >= Date(Year(Today()), Month(Today()), 1),
    Created < Date(Year(Today()), 1 + Month(Today()), 1))

 

Regards,

Mona 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Highlighted
Super User
Super User

Re: browse gallery Filter [Me]

@joef 

Assuming you are using SharePoint you could use this code.  This code cannot be delegated so it can only be used if the SharePoint list will not exceed 2,000 records

 

Filter(your_datasource_name,'Created By'.Email=User().Email)

 

If you want to use delegation you should begin storing the email of the User who created the record in a single line text column called CreatedByEmail and use this code instead.

 

Filter(your_datasource_name,CreatedByEmail=User().Email)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted
Post Patron
Post Patron

Re: browse gallery Filter [Me]

Thanks @mdevaney ,

Is that the entire list,  or the data being brought to the app for the user?  

If the list has 5000 items, but the user that opens the app only entered 20 will that be OK?

 

Also do you know how to limit the call to just the items the current user added this month? (12/1 thru 12/31)

 

Thanks Again,

Joe

Super User
Super User

Re: browse gallery Filter [Me]

@joef 

Is that the entire list,  or the data being brought to the app for the user?  

The 2nd example I gave will search the entire list.  Not just data being brought to the app for the the user.

 

If the list has 5,000 items, but the user that opens the app only entered 20 will that be OK?

You should use the 2nd example because of this requirement.  The delegation limit is 2,000 records searched (not returned).

 

Also do you know how to limit the call to just the items the current user added this month? (12/1 thru 12/31)

I suggest you post this one as a separate question.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted
Community Support
Community Support

Re: browse gallery Filter [Me]

Hi @joef ,

 

Do you know how to limit the call to just the items the current user added this month? 

Please use below formula:

Filter(your_datasource_name,'Created By'.Email=User().Email,Created >= Date(Year(Today()), Month(Today()), 1),
    Created < Date(Year(Today()), 1 + Month(Today()), 1))

 

Regards,

Mona 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Post Patron
Post Patron

Re: browse gallery Filter [Me]

Hi @v-monli-msft ,

I modified your date to use DateAdd so the users get a rolling 30 days of what they enter.  

 

I get the delegation warning that @mdevaney referred to above, with the dateadd.  Is there a way around this?  I am sure my list will get much larger than 500 rows, and my requirements need to show the last 30 days the user entered.

 

Thanks again both of you!!

Joe

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,620)