Hello,
Need a little assistance with a simple expression. I have a SharePoint list as the data source. In my powerapps screen I want the 'Site Lookup' field (which is a Choice dropdown field) to default to what that user chose for that field on the last entry.
This is what I am thinking, but need help so that it only takes the last entry by that user:
LookUp('Driver Activity Log',Date=First('Driver Activity Log'),'Site Lookup')
Also the 'Site Lookup' reference (in red) isn't working? perhaps because it is a choice field?
Solved! Go to Solution.
Hi @TorreyFalconer ,
Firstly, Date is a fieldname, First('Driver Activity Log') is a record, you can not compare a field with a record.
Try this:
LookUp('Driver Activity Log',Date=First('Driver Activity Log').Date,'Site Lookup')
You need to compare a value with a field.
Secondly, this formula will have delegation warning.
Could you tell me how many are your records?
If your record is less than 500, there's no problem.
If your record is larger than 500 and smaller than 2000, please change your non-delegateable limit to 2000.
If your record is larger than 2000, please modify your formula to delegateable functions. Or else you will get wrong result.
You could refer this in details:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/delegation-overview
Best regards,
Hi @TorreyFalconer ,
Firstly, Date is a fieldname, First('Driver Activity Log') is a record, you can not compare a field with a record.
Try this:
LookUp('Driver Activity Log',Date=First('Driver Activity Log').Date,'Site Lookup')
You need to compare a value with a field.
Secondly, this formula will have delegation warning.
Could you tell me how many are your records?
If your record is less than 500, there's no problem.
If your record is larger than 500 and smaller than 2000, please change your non-delegateable limit to 2000.
If your record is larger than 2000, please modify your formula to delegateable functions. Or else you will get wrong result.
You could refer this in details:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/delegation-overview
Best regards,
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
205 | |
183 | |
71 | |
37 | |
33 |
User | Count |
---|---|
344 | |
274 | |
118 | |
76 | |
58 |