I replicated your question with sales data. See attached.
You can use a calculation like this to group the dimensions together.
when "Furniture" then "One"
when "Office Supplies" then "One"
when "Technology" then "Two"
Hope this helps! See attached.
Please mark this answer as correct or helpful if it solves your question.
Stack.twbx 1.2 MB
Seeing your screenshot I'd suggest you need to transpose your measures from columns to rows so that all the measures come under one field. Then you can create a group to achieve the expected output.
Let us know if this helps.