Bug 124629 - Filtering a pivot table group field may hide all group fields, including the filtered one
Summary: Filtering a pivot table group field may hide all group fields, including the ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.6.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Pivot-Table
  Show dependency treegraph
 
Reported: 2019-04-09 20:46 UTC by Mike Kaganski
Modified: 2024-08-11 21:03 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
A sample pivot table with multiple group fields (39.32 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-04-09 20:46 UTC, Mike Kaganski
Details
Screencast of group field filtering bug (1.19 MB, image/gif)
2019-04-09 20:48 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2019-04-09 20:46:59 UTC
Created attachment 150630 [details]
A sample pivot table with multiple group fields

Open the attached file, and filter any group field (Years, Quarters, ... , Fix date) to exclude everything but ">25.03.2021" or "<25.03.2019" (">12.10.2022" or "<20.09.2022" for last two groups).

When the filtering is confirmed, all the data gets hidden from the table, and the pivot table naturally gets empty; but also all the group fields but the first one get hidden, too. If one had filtered some group field other than the first one, this filtered field would get hidden, too, making it impossible to easily change the filter back.

It is currently impossible to use "Undo" to revert the action: while the data gets displayed after Undo, the filter is inaccessible (seems like an unrelated bug); but even if Undo worked, it is not always possible to use it: e.g., pivot table could turn into that state because of pre-existing filtering, which used to provide some data for the table; but after changing data in the source, and refreshing (possibly after saving and reloading), the new source does not provide any data for the table. It's impossible to undo a pivot table refresh; and closing unsaved could loose the work done thus far in this editing session.

There is an obscure way to fix the table, though: one needs to change the table layout to make filtered field the first one.

The behavior is very inconvenient, and also inconsistent e.g. with Excel, where all the fields are shown even when no data is displayed in the table.

This is reproducible since version 3.6 (older versions would crash when filtering attempted).
Comment 1 Mike Kaganski 2019-04-09 20:48:05 UTC
Created attachment 150631 [details]
Screencast of group field filtering bug
Comment 2 m_a_riosv 2019-04-09 21:20:37 UTC
Repro
Version: 6.2.3.1 (x64)
Build ID: 9ba025bafb03b962c34687cf87806cc03a3a7436
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
Locale: es-ES (es_ES); UI-Language: en-US
Calc: CL
Comment 3 QA Administrators 2021-04-13 03:40:15 UTC Comment hidden (obsolete)
Comment 4 Roman Kuznetsov 2021-04-19 13:38:05 UTC
still repro in

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 88ca6d7834a9d710dc124ee845fd3c270e33b59a
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: threaded
Comment 5 QA Administrators 2023-04-20 03:31:09 UTC Comment hidden (obsolete)
Comment 6 m_a_riosv 2023-04-25 02:25:52 UTC
Still
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 006b35d50024b1932d84380b5d2fec1f7066bccd
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded Jumbo
Comment 7 Aron Budea 2023-07-08 07:30:03 UTC
The following commit in 24.2 resolves a similar problem, but it actually doesn't solve the bug with the sample here:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=3551d18404cb19cdaa8edb170a549f5c5405d0cb