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

Filter Gallery Items based on previous submission date

Hey there,

 

Purpose:
Show comparison in detail screen of original data and new data.

Explained:
The formula looks up your previous submissions by your employee ID in my collection, and then HR_Approval_Date is the part I need some help with...


Current Formula

LookUp('[dbo].[FriendlyDB]', Employee_ID = User_App_Employee_ID && HR_Approval_Date => DateValue("11/16/2019"))

 

 

I have my date in a readable format in a label for reference:
DateValue1.SelectedDate + Time(Value(HourValue1.Selected.Value), Value(MinuteValue1.Selected.Value), 0)

The label name is Approval_Label_3


Ideally I'd want to show the single record that was previous the displayed record based on date.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Friendly
Level: Powered On

Re: Filter Gallery Items bI gotased on previous submission date

I got this part working without error... It just doesn't display any results 😛

LookUp('[dbo].[Employee_Per_Info]', Employee_ID = User_App_Employee_ID && HR_Approval_Date = DateValue("11/17/2019"))

View solution in original post

Friendly
Level: Powered On

Re: Filter Gallery Items bI gotased on previous submission date

That item limit was already at 2000.

 

I used a different method than date to grab the previous record, I used the submitter + record column, and selected -1 record from current.

 

LookUp('[dbo].[FRIENDLYDB]', Employee_ID = User_App_Employee_ID && Emp_Per_ID = (Value(DataCardValue4.Text)-1))

View solution in original post

3 REPLIES 3
Friendly
Level: Powered On

Re: Filter Gallery Items bI gotased on previous submission date

I got this part working without error... It just doesn't display any results 😛

LookUp('[dbo].[Employee_Per_Info]', Employee_ID = User_App_Employee_ID && HR_Approval_Date = DateValue("11/17/2019"))

View solution in original post

Community Support Team
Community Support Team

Re: Filter Gallery Items bI gotased on previous submission date

Hi @Friendly ,

Do you mean that you've checked your formula and found it has no error but get no result?

Could you tell me your table's record number?

If your table number is too large, I believe it is a delegation problem, not using wrong formula.

If your record number is smaller than 2000, you just need to change this non-delegatble limit to 2000.

delegation.jpg

 

If your record number is larger than 2000, I suggest you modify your formula and only use delegateable functions.

Or else, your app may not perform well, for example get wrong result.

Here's a doc about delegateable  fucntions of SQL for your reference:

https://docs.microsoft.com/en-us/connectors/sql/

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Friendly
Level: Powered On

Re: Filter Gallery Items bI gotased on previous submission date

That item limit was already at 2000.

 

I used a different method than date to grab the previous record, I used the submitter + record column, and selected -1 record from current.

 

LookUp('[dbo].[FRIENDLYDB]', Employee_ID = User_App_Employee_ID && Emp_Per_ID = (Value(DataCardValue4.Text)-1))

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps 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

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,946)