Now the ledger codes related to the vendor are displayed in the dropdown against each invoice in the gallery
The formula column will update automatically if the lookup to the Ledger table is changed so it always remains valid
There is some slight data duplication as the content of the formula column is in addition to the lookup column, but that is a very small price to pay to allow the content of a different table to be displayed in a dropdown control with so little effort
What’s really interesting is the dot notation in formula columns can be used to navigate multiple tables. This means that formula columns can be used to display not only columns in the parent table, but if required, the grandparent table or even great-grandparent tables too. See my recent post on Navigating Dataverse Tables for more details on dot notation navigation