cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Community Support Team
Community Support Team

Re: Filter using user email address - User().Email

Hi @ck25415,

 

Could you please share a screenshot of your app's configuration?

Further, could you please show more details about the expression that you mentioned?

 

I agree with @dinusc's thought almost. The CountRows function could not be delegated by data source, if you add the CountRows function within your formula, your formula could not be delegaed by data source. Your formula would be processed locally, by default, you could only process 500 records within your PowerApps app at most.

 

More details about the Delegation in PowerApps, please check the following article:

Delegation in PowerApps

 

Please check if the amount of partial records (before the certain date) existed in your SP list is more than 500. If the amount of partial records (before the certain date) is more than 500, the rest part records which are created after that date would be ignored. 

 

You could also change the Data row limit for non-delegable queries within the App Settings of your PowerApps app. The maximum value for Data row limit for Non-Delegable queries is 2000.

 

More details about changing Data row limit for non-delegable queries, please check the following article:

Change Date row limit for Non-Delagable queries

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ck25415
Level 8

Re: Filter using user email address - User().Email

That worked. Thank you @dinusc @v-xida-msft. I have increased the limit to 2000.

 

I do have a question for you guys. My sharepoint list will soon reach 2000 items. Is there any work arround to still display the item count.

 

Please let me know.

Microsoft Employee

Re: Filter using user email address - User().Email

I can only think of the following options:

1. Use only delegable functions in order to load all the items in batches to a collection and then check the number of items in that collection. This is not going to be easy to do in SharePoint as you would probably have to rely on the delegable equality operator. For example, if you had a "batch_id" column in your list (batch_id=1 for rows 1-500, batch_id=2 for rows 501-1000 and so on) then you could use "Collect" to load your data in batches using the delegable equality operator. You would have to handle the value in that column on adding/removing data.

2. Use a different database (SQL for example) which has better support for delegable functions.

 

 

Please note that the reason the number of rows for non-delegable operations is limited is because that may cause performance degradations, especially on older mobile devices.

Highlighted
Lexnnn
Level: Powered On

Re: Filter using user email address - User().Email

This did help me to filter on User = email from people field: (I was using people field and it did not work well with powerapps) (3200+ items)
https://wonderlaura.com/2018/10/26/powerapps-filter-by-me/

Solution in short: use variable "on start" + "OnVisisble" refresh of the list and use same variable in filter +  single line of text field instead of poeple field.

SortByColumns(Filter('Sandwich shop',(Salesrepemail = CurrentUser.Email) And ((StartsWith(Account_x0020_name, TextSearchBox1.Text)) Or (StartsWith(Street, TextSearchBox1.Text)) Or (StartsWith(City, TextSearchBox1.Text))Or (StartsWith(Postal_x0020_Code, TextSearchBox1.Text)))), "Account_x0020_name", If(SortDescending1, Descending, Ascending))

 

To let the users still be able to use the people field, I use flow to auto populate the new single line of text field with a copy of email adress from people field.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 62 members 4,625 guests
Please welcome our newest community members: