Bug 162971 - When right-clicking and sorting PivotTable data, totals row treated as data
Summary: When right-clicking and sorting PivotTable data, totals row treated as data
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.8.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks: Pivot-Table Sorting
  Show dependency treegraph
 
Reported: 2024-09-14 21:32 UTC by Eyal Rozenberg
Modified: 2024-09-14 22:19 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2024-09-14 21:32:34 UTC
Suppose you have a PivotTable with a totals row at the bottom (and some lines of actual data). If you:

1. Click somewhere in the PT's data area
2. On the menu, click Data > Sort...
3. Click Sort

You'll notice two problems.

While the entire PivotTable is selected, including header rows, the dialog doesn't have "Range Contains Column Labels". But - that's the minor issue (although maybe it also merits a bug). The bigger problem will be that the "Total" or "Total Result" row will now be placed according to its value, so that if you sorted-descending on a certain column, then the "total" will appear as the first row under the header.
Comment 1 Regina Henschel 2024-09-14 21:48:46 UTC
That is similar to the sorting problem with database ranges, that I have reported in bug 162964.
Comment 2 Eyal Rozenberg 2024-09-14 22:19:19 UTC
(In reply to Regina Henschel from comment #1)
> That is similar to the sorting problem with database ranges, that I have
> reported in bug 162964.

Indeed, almost the same issue :-)

I wonder if it's the same place in the code though. Perhaps one of the developers could tell us.