Forget nulls.. I don't see the else part of the outer IIF statements at all.
In this case first we first check if Hoitiotili <> 51, then <> 52, then <> 61, finally <> 62. If all satisfies then "EUR", else if Hoitiotili=62 then "Ulk os maa".
You have not written in the else handlers of the outer...