I want to be able to edit the budget of a workpackage and if the sum of the budget for this specific workpackage is larger than the avaiable budget in the project table then the speficic budget for the workpackage should be set to the previous budget!
I have two tables Workpackage and Project
If(Sum(Filter(colA; Projektname = ThisItem.Projektname) ; Budget) + Value(ThisItem.Budget) - Value(LookUp(colA; ID = ThisItem.ID).Budget) <= Value(LookUp(Projektstammdaten; Projektname = ThisItem.Projektname).'Plan / Budget Faktura'); Select(Parent); ThisItem.Budget = LookUp(colA; ID = ThisItem.ID).Budget)