Maybe you can try giving them a name at back end.
If(isnull(Department),'XX',Department as Department1,
If you want a more classy way to color departments, add a department color table to your model.
Then on front end, you can colorcode them without using IF.
Should be joy, joy, joy then