Hi everyone,
I have this scenario (only putting the columns in play):
2 sharepoint lists:
1. Contracts
| Title (Text) | Project Status (Choice) |
| 301 | Completed |
| 302 | Completed |
| 303 | On Going |
| 304 | On Going |
| 305 | On Going |
2. Billable Hours:
| Contract (Lookup from Contracts) |
| 301 |
| 302 |
| 303 |
| 304 |
The app purpose is to view/add/edit records in the 'Billable Hours' list.
The form in play is connected to the 'Billable Hours' list.
Same form is used for edit and new scenarios. This is how it looks for the new mode:

For the contract field it has the auto generated combo box.
This is what I'm using now for the Items property:
If(
EditForm1.Mode = FormMode.New,
Filter(Choices([@'Billable Hours'].Contract), Value in Filter(Contracts, 'Project Status'.Value = "On Going").Title),
Choices([@'Billable Hours'].Contract)
)
It's working as long as there was already a record of the contract in the list.
The problem is when I want to enter a record for a contract that is still doesn't have a record in the list, it won't be shown of course, so I want to pick it up from the contracts table title column.
I would like for the new mode that this dropdown would come from the title column in the contracts table that is of course filtered only to Project status = On Going (same logic as in the code I shared)
How to write the formula?
Thank you!