How to hide line items in UX avoiding repetitive hide UX command

Hi all,

I am facing an issue I'm pretty sure many of you already have dealt with.

The columns Cost Center, Responsible, Employee Name, Labor Cost are line items.

I wish I could show the cost center, responsible, employee name, labor cost line items only for the first project (1-Av-Bc - Argus V1); in short, I need to go from this view:

to this view:

So far, the only way I managed to achieve this result is by hiding all the line items for each project. How can I solve this issue?

Thanks in advance,