I have a field named Id, a field named accounting code and one named budget check.
Budget check may be on budget, out of budget, pending budget check or undefined on accounting code level.
Now I want to create a calculated field to show a report on id level with the below rule.
If at least one accounting code is out of budget the whole id is out of budget.
If at least one accounting code is undefined the whole id is undefined.
So for example in the below picture 61269 has an accounting code On Budget and one Out of Budget. The whole ID should be out of budget.
The same for 58552 which should be Undefined etc.