Created attachment 198981 [details] Sample file Please use the attached simplified sample spreadsheet. To reproduce: 1. Click one of the two months, in A3 or A4 2. Go to “Data > Group”, then add “Year” in addition to Month Result: the yellow numbers in F3-F4 will break (their calculated results will completely change) because column D has shifted to E, but the refs have not been updated to E. --- Tested on: Version: 25.2.0.3 (X86_64) / LibreOffice Community Build ID: e1cf4a87eb02d755bce1a01209907ea5ddc8f069 CPU threads: 8; OS: Linux 6.12; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Flatpak Calc: threaded
I think this is not a bug, references to a pivot table are not updated when PT changes. Maybe GETPIVOTDATA function https://help.libreoffice.org/latest/en-US/text/scalc/01/04060109.html?DbPAR=CALC#bm_id7682424 can help to obtain those values, no matter where the column is, be aware that dates are searched with their text value. or look for the column values with INDEX and MATCH, I think the easiest way.
*** This bug has been marked as a duplicate of bug 160515 ***