Hello
Each time a user logs in, a text record 'Yes' is created in a column next to the users ID code. So, logged in = Yes.
I am trying to filter a column in Dataverse. If the user's last entry was a 'yes' entry then the button should be disabled.
If(IsEmpty(Last(Filter('Stagings', 'Logged In'= TextInput1.Text, 'Employee Code'=inPutEmployeeID))),
DisplayMode.Edit,
DisplayMode.Disabled)
Right now the button is always disabled and im not sure why using the above formula (textinput1.text is displaying 'yes'). So it's filtering based on the user's code and whether or not the latest entry for that user was a 'yes' but not working.
I;ve also tried :
If(IsEmpty(Last(Filter('Stagings', 'Logged In'= Text('Yes'), 'Employee Code'=inPutEmployeeID))),
DisplayMode.Edit,
DisplayMode.Disabled)
But that says theres invalid arguments with Text('Yes')
Also:
If(IsEmpty(Last(Filter('Stagings', 'Logged In'= Text('Stagings'.'Logged In'.'Yes')), 'Employee Code'=inPutEmployeeID))),
DisplayMode.Edit,
DisplayMode.Disabled)
But no luck.
Any help is much appreciated with this. Thank you