Also in the program, you can group data in the form of a tree by any field, simply by moving the header to the part above the table. For example, let's group the data by counterparty category and city:
You can cancel the grouping by dropping the field name back into the table header.