Today I’ll explain the functionality of Pivot widgets and will cover one of the top pivot questions we get in Wrike Support : why doesn’t sorting work?
One of the main topics we get asked about when it comes to Analyze is Sorting. Today, we’ll look at this in more detail so keep reading 👇
Introduction: Pivots and Tables
Let’s get started by looking at widgets. When two widgets look similar, how do you decide which one to use?
In a nutshell, there are only dimensions (rows/categories) in Table widgets. That means it’s not possible to create formulas in Table widgets which is the main distinction between pivots and tables.
Pivots are more flexible and they have three sections: Rows, Values, and Columns.
In contrast to Table widgets, it’s also possible to create formulas in Pivots, that’s what the “Values” section is for. The section “Column” can be used to break down a formula in Values:
Note: Table “Columns” and Pivot “Columns” are different things. Table “Columns” are more similar to “Rows” in Pivots - it’s the only section available in this widget type. Pivot “Columns” are more similar to “Break by” in charts and can be applied only to formulas under “Values”. Since formulas return only numeric values, non-numeric data (dates, text, etc.) cannot be broken down by the “Column” section.
Why can’t I sort a Pivot widget?
Another exception to Pivot widgets is aggregation. You might have already noticed from my screenshots that the project name “Tarkin Initiative” appeared three times in the Table widget while the Pivot shows it just once and aggregates other rows under it.
If there’s no aggregation in a widget at all, you’ll be able to sort a Pivot by any column. In my example below, there’s just one row for each Project Name, no rows are aggregated, and that allows me to sort the widget by Due Date:
However, once I add Project Owner to this widget, there will be three rows grouped for one of the projects, and sorting by Due Date will have no visual result anymore:
It may seem that sorting isn’t working here, but stick with us :) Once something that activates aggregation is added, the system starts viewing every set of columns as a block. When I’m trying to sort the widget by Due Date, it won’t sort anything to the left of that column:
There is almost nothing to sort since there is always just one due date, so it looks like sorting isn’t working. This will be easier to show on the column Project Owner. Since it has aggregated rows, I can change their order within their small aggregated block, but not the order of the projects:
Alternatively, if I didn’t need formulas in my widget, I could just use the Table widget type. It has no aggregation, which means all the data is simply duplicated in every row. As a result, I can sort this by any column:
I hope this article gave you clarity on the differences between pivots and tables! Please let us know if you have any questions in the comments below.
Herine Wrike Team member Infórmate sobre las funciones y prácticas recomendadas de Wrike