'Create a new sheet by filtering and reordering existing sheet in LibreOffice Calc
Solution 1:[1]
JohnSUN is correct that you can achieve what you want using Pivot Table function. Here are the steps on how you can do this:
- Select your entire sheet or range of your data.
- Data --> Pivot Table --> Insert or Edit.
- In the Column Fields, remove "Data"
- In the Column Fields, add "Year"
- In the Row Fields, add "Country Rank"
- In the Data Fields, add "Income". It will show up as "Sum - Income", but this is OK because you only have 1 row of data per year per rank.
- Expand Options, and deselect "Total Columns" and "Total Rows"

By default it should create the table in a new sheet.
If for some reason pivot table is showing blank data, save the file (as ODS), close it, then open and try again.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Nimantha |


