I have a scenario where I want to look at the child records of an parent tables record. I.e. I have table called Timesheets and a child table called Timesheet Items
The Primary Key and Look up are both called Timesheet Item. For the life of me I can't get the following formula to work so that when I click through from gallery 1 (Timesheets) to Galley 2 (Timesheet Line Items) it filters only the Timesheet Line Items where the PK/LK is the same as the selected Timesheet. I am using the following formula:
Filter('Timesheet Line Items',AsType('Timesheet Item',[@Timesheets]).'Timesheet Item' = Gallery.Selected.'Timesheet Item')
Now I now that the concept behind this formula works as I tested it on an App with Accounts and Contacts using the following formula:
Filter(Contacts,AsType('Company Name',[@Accounts]).'Account Name' = BrowseGallery1.Selected.'Account Name')
Can anyone help me understand what I am doing wrong?