Hi @Abhilash ,
Could you please share a bit more about the data structure of your attendance List?
Do you add a column in your attendance List to store the user display name?
I assume that there is a column in your attendance List to store the user Display name, please consider take a try with the following workaround:
Set the Visible property of the button to following:
If(
!IsBlank(LookUp(attendance, UserName = User().FullName, Checkin)) && IsBlank(LookUp(attendance, UserName = User().FullName, Checkout)),
true,
false
)
Note: I assume that there is only single one record existed in your attendance List for each user. The UserName represents the column in your attendance List to store the user name of the login user.
More details about the LookUp function, please check the following article:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-filter-lookup
Best regards,