Hello,
I have a PowerApps App where the code is working within the Edit mode but not within Microsoft Teams.
This is how it should like(Edit mode):

This is how it looks with the App integration in Microsoft Teams:

If(ThisItem.Capacity <= CountRows(Filter(SeatingRequests;DateText = Text(_dateSelected; DateTimeFormat.ShortDate) And 'Room Number'=ThisItem.'Room Number' And !(Approvalstatus = "04 - Rejected"))); "This room is already booked"; "Available seats: " & ThisItem.Capacity - CountRows(Filter(SeatingRequests;DateText = Text(_dateSelected; DateTimeFormat.ShortDate) And 'Room Number'=ThisItem.'Room Number' And !(Approvalstatus = "04 - Rejected"))) & "/" & ThisItem.Capacity)
The available seats are unfortunately wrong and I don´t know why. All users have the problem within teams. When I set the user as Co-owner and they edit the app it is working.