The source table has two columns: teachers and salary. The summary is built on this table. In the summary, a duplicate of salaries is created by transferring salaries to a window. As a result, you will have two columns with a salary. By the right button on the second copy of the salary and select the parameters (last item) in the menu. In the window that opens, select the second tab and in it in the list select the rank. Below the names of the columns in the source table will be displayed. Choose teachers. Then you can give a new name to this column (I gave it the name Rank). As a result, you will have a summary as in my message above.