Bug 153217

Summary: Pivot grouping expands to all pivots
Product: LibreOffice Reporter: Andreas Säger <villeroy>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: 79045_79045, stephane.guillou
Priority: medium Keywords: notBibisectable, regression
Version: 4.0.6.2 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103381, 116661    
Attachments: Spreadsheet with 2 pivots

Description Andreas Säger 2023-01-26 10:34:13 UTC
Description:
In the attached spreadsheet the first sheet contains a source table and a pivot side by side. The pivot is grouped by month and year. The second pivot on the other sheet has been created by just dragging the date to column fields and the values to data fields. It has been grouped by month automatically, but not by year since the Janurary sums include the values of both Januaries.
When you remove the grouping from either pivot, it is removed from the other pivot as well even without manual refresh.

Steps to Reproduce:
1. Click a pivot cell in the in one of the year/quarter/month columns and remove the grouping from one pivot (Ctrl+F12)
2. The pivot shows single dates
3.

Actual Results:
The second pivot also shows singel dates

Expected Results:
2 pivots should be grouped independently from each other


Reproducible: Always


User Profile Reset: Yes

Additional Info:
https://ask.libreoffice.org/t/how-to-properly-filter-by-date-in-a-pivot-table/86966/4
Comment 1 Andreas Säger 2023-01-26 10:35:07 UTC
Created attachment 184921 [details]
Spreadsheet with 2 pivots
Comment 2 Werner Tietz 2023-01-26 11:18:32 UTC
I can confirm the Issue, with:
Version: 7.0.4.2
Build ID: 00(Build:2)
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Raspbian package version: 1:7.0.4-4+rpi1+deb11u3
Calc: threaded
Comment 3 Stéphane Guillou (stragu) 2023-01-26 14:05:07 UTC
(Alternative to Ctrl + F12 is Data > Group and Outline > Ungroup)

Also reproduced with:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e125e6623fa1c0f39d927bb37547ca6d1e299cb1
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

and:

Version: 6.1.0.3
Build ID: efb621ed25068d70781dc026f7e9c5187a4decd1
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk2; 
Locale: en-AU (en_AU.UTF-8); Calc: group threaded

Looks like an old regression, as I can't reproduced in OOo:

OpenOffice.org 3.3.0
OOO330m20 (Build:9567)
Comment 4 Roman Kuznetsov 2023-02-23 19:42:19 UTC
Repro in

Версия 4.0.6.2 (ID сборки: 2e2573268451a50806fcd60ae2d9fe01dd0ce24) also

Looks like not bibisectable