Building out automated tracking for matrixed organization

Hi all,

Was wondering if anybody had experience building out tracking of expenses for matrixed organizations. For example, I’d like to track traditional departments (eng, CS, BD) that are allocated under potential Organizational units, x,y,z, and then be able to push and track in QBO, f

I’d like to be able to splice these so i can track, here’s expenses by department, and then by organizational unit.

Is there a way to adapt custom groups to do this?

In my head, custom groups could be used to track and classify these.