Bug 159608 - PivotTables (and charts) behaving erratically
Summary: PivotTables (and charts) behaving erratically
Status: RESOLVED DUPLICATE of bug 158223
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.6.4.1 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-06 22:07 UTC by ehardre
Modified: 2024-02-22 17:17 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
I recreated this file after the prior file had the errors. The tab "Felicia" is the individual user report I had created separately for each employee in the data. The errors repeated so I stopped. (141.56 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-02-07 00:54 UTC, ehardre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehardre 2024-02-06 22:07:58 UTC
Description:
Okay, so I've been using LibreOffice for over a decade and I was a Microsoft Excel User Expert (and trainer) before that. I've extensively tested this issue, but I cannot figure out why it's happening. It has been happening through several updates but only over the last year or so. Before that, these workbooks I created and the related tables and charts worked fine for nearly 10 years. Here are the details.

I created a data table (named range on a separate sheet) and then I created a PivotTable from the named range on another sheet (the report, if you will). In addition to that, I created a graph that uses the PivotTable ranges as the Data Ranges for the graph. Initially, everything looks great.

Issue #1: After saving the document, the Charts are completely messed up. 
Issue #1.1 The data was appended to the Categories. Specifically, the categories were dates and were all listed first with no graph data, then the graph data was listed with blank categories. This happened to ALL the graphs in the sheet in exactly the same way. So I went back into the Data Ranges for the chart but they are all pointing to the correct data ranges with the correct data in them. Clicking OK after checking changes nothing. FIX: Reselect the exact same ranges and then click OK. Fixes the charts every time.

Issue #1.2: The Names of the Data Ranges are messed up. Specifically, the Names are from several cells concatenated to each other. For example, if the Name was supposed to be a person's name, say "Sam", the Name suddenly changes to "Sam Jane Date". This all seems arbitrary, but looks like it is the data from several adjacent cells. Again, checking the reference in Data Ranges shows that the reference is pointing only to one cell and the correct cell. Nothing has changed from when I originally input the reference. Again, clicking OK does nothing but reselecting the same exact reference and then clicking OK does fix the issue immediately.

Issue #2: The Filter on the PivotTable disappears. Specifically, whatever was selected in the Filter remains as the data in the cell but the drop down list goes away and the cell is just a normal cell. All the other drop down lists and related functionality disappear as well: Data cannot be clicked, etc. All the PivotTable formatting remains AND right clicking inside the table shows the PivotTable menu. However, if you go back to Properties and try to recreate the PivotTable, you get the warning that data exists and should you overwrite it? Clicking YES will replace the PivotTable but now with a completely unusable table (i.e., the PivotTable is now gone).

I cannot find the trigger for these errors. They have happened BEFORE I have closed the document and AFTER saving the document. They have happened AFTER reopening the document. I tried updating LibreOffice, closing the program completely, rebooting, and then creating a brand new document and completely recreating the document from scratch. After just a few minutes, the errors happened again.

Steps to Reproduce:
1. Create a named range on a sheet with multiple columns of data
2. Create a PivotTable on a separate sheet referencing the named range
3. Create a Chart based on the PivotTable
4. I cannot figure out whether the PivotTable needs to be Filtered, mine is.
5. I cannot figure out what triggers the error. After working with the workbook, adding additional sheets, saving, reopening, etc, the problems all occur. Some occurred immediately after saving the document and before I had even closed it.

Actual Results:
Already mentioned in the outline above

Expected Results:
Already mentioned in the outline above


Reproducible: Always


User Profile Reset: No

Additional Info:
Already mentioned in the outline above
Comment 1 ehardre 2024-02-06 22:30:14 UTC
After additional testing: the charts issue appears to be this. The references in the ranges for the Data Series entries DO change. The cells are the same, but the reference begins with the sheet name of the previous sheet. so what was entered as "$Felicia.$J$13:$J$18" changes to "$Levels.$J$13:$Felicia.$J$18" and this happens every time the workbook is saved, closed, and reopened (I used the File - Recent Documents menu to retrieve it).
Comment 2 ehardre 2024-02-06 22:42:43 UTC
More info on the related PivotTable problem: the PivotTable I recreated is already dead, after saving, closing, and re-opening the workbook. I am unable to click any of the drop down lists in the PivotTable, it functions like any other table.

HOWEVER, I can right click and get to the PivotTable menu, so I clicked Properties and I can see that the Destination reference has changed. It is still to Selection and the cell is the same but again, the sheet name is the previous sheet in the list (the one positioned directly before this one). So I had entered and am looking at "$Felicia.$A$8" but now the PivotTable Properties read "$Levels.$A$8".

These problems ALL follow a common pattern. Part of the references for PivotTables and for Charts are being replaced with the name of the previous sheet.
Comment 3 m_a_riosv 2024-02-07 00:37:44 UTC
Please attach a sample file, reduce the size as much as possible without private information, and paste the information in Menu/Help/About LibreOffice, there is a copy icon.
Comment 4 ehardre 2024-02-07 00:54:14 UTC
Created attachment 192441 [details]
I recreated this file after the prior file had the errors. The tab "Felicia" is the individual user report I had created separately for each employee in the data. The errors repeated so I stopped.

Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 20; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 5 m_a_riosv 2024-02-07 02:34:50 UTC
There is no PT on Felicia, only the values of a PT, no option for PT right-clicking on that cells. The same with the PT on Graphs.

In weekly report there are more than two PT not only two. Maybe those that should have been on Graphs and Felicia.
Could you try creating a file from scratch, and saving every new PT, to test if there is something wrong?


Do you know that it is possible to create PT chart?:
https://help.libreoffice.org/latest/en-US/text/scalc/guide/pivotchart.html?DbPAR=CALC#bm_id541525139738752
Comment 6 ehardre 2024-02-07 04:16:09 UTC
Right. That is the file from after the errors occurred. I will recreate it and attach it tomorrow.
Comment 7 Stéphane Guillou (stragu) 2024-02-22 16:04:50 UTC
I am pretty confident this is a duplicate of bug 158223, which should be resolved in the soon-to-be-released 7.6.5. Once it is out, please test and let us know if you can confirm that's the case.

Thank you!

*** This bug has been marked as a duplicate of bug 158223 ***
Comment 8 ehardre 2024-02-22 17:17:56 UTC
Will do. Thank you.