Bug 163909 - FILEOPEN XLSX: pivot table is not imported as pivot table
Summary: FILEOPEN XLSX: pivot table is not imported as pivot table
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:xlsx
Depends on:
Blocks: Pivot-Table-XLSX
  Show dependency treegraph
 
Reported: 2024-11-15 14:57 UTC by Regina Henschel
Modified: 2025-04-11 13:38 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example with pivot table and pivot chart (96.30 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2024-11-15 14:57 UTC, Regina Henschel
Details
Screenshot left Excel right LO (122.29 KB, image/png)
2024-11-15 15:04 UTC, Regina Henschel
Details
The pivots source in Excel (73.41 KB, image/png)
2025-04-10 11:03 UTC, Gabor Kelemen (allotropia)
Details
Modified version of the example (85.40 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2025-04-10 12:02 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2024-11-15 14:57:11 UTC
Created attachment 197629 [details]
Example with pivot table and pivot chart

Open attached file. It has a pivot table in range F4:L13 in Excel. The opened file has no pivot table there but only ordinary direct cell content.
Comment 1 Regina Henschel 2024-11-15 15:04:28 UTC
Created attachment 197630 [details]
Screenshot left Excel right LO

To verify that it is no pivot table: Change a value in column C, go to Data > Pivot Table. If it were a pivot table, the item 'Refresh' would be enabled.
Comment 2 m_a_riosv 2024-11-16 01:02:50 UTC
Reproducible
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 83910246044c1e05a3b50e25d21ac6a31566cc38
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 3 Timur 2025-01-27 14:48:09 UTC Comment hidden (me-too)
Comment 4 Timur 2025-01-27 14:49:57 UTC
Seems this happens only with original pivot in the same sheet.
If in MSO I create similar pivot in another sheet, that one opens in 25.2+, albeit black&white, without pivot theme colors.
Comment 5 Gabor Kelemen (allotropia) 2025-04-10 11:03:29 UTC
Created attachment 200268 [details]
The pivots source in Excel

The source of this pivot is the myData table, provided as if it was from an external file.
Comment 6 Gabor Kelemen (allotropia) 2025-04-10 12:02:14 UTC
Created attachment 200270 [details]
Modified version of the example

Here a second pivot table was added using the myData table as source.

This works, but only because the import changes it to a direct cell range A1:C30.

This is just to show a missing feature: in Excel, the pivot tables source can be a named range or table, but in Calc only the named range is supported when creating a new pivot.

So the first step would be to add support for creating pivot tables (Data - Pivot table - Insert or Edit) from Database Range names (see Data - Select Range, the "myData" table name is mapped to these).