I have two tables, "stock" and "prices". In table "stock" I made a measure (called "Voorraad").
Voorraad = CALCULATE (