Bug 91173 - Pivot table using a global named range as source do not follow range changes
Summary: Pivot table using a global named range as source do not follow range changes
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-08 18:07 UTC by vice
Modified: 2015-05-08 20:45 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example of a pivot table that do not respect the range of the named range (9.25 KB, application/vnd.oasis.opendocument.spreadsheet)
2015-05-08 18:07 UTC, vice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vice 2015-05-08 18:07:21 UTC
Created attachment 115458 [details]
Example of a pivot table that do not respect the range of the named range

HOW TO REPRODUCE
Create a global named range
  In attachment example, I create the named range Test as $A$1:$C3
  Notice the absence of $ before the last row number
  This is intentional to allow the range to increase adding rows
Use it as source for a pivot table
Add a new row of data following the named range
The named range gets correctly updated adding one or more rows as needed
  You can check this using ctrl+F3
But the pivot table do not get data from the updated range

WORKAROUND
Do not use named range when range is dinamic.
Put a range directly as the source of the pivot table with a lot of rows
and ignore empty cells

TESTED ON:
OSX 10.9 LibreOffice version 4.3 4.4.2 4.4.3
Ubuntu 15.04 LibreOffice version 4.4.2.2
Comment 1 vice 2015-05-08 19:07:32 UTC
However if the range is modified via the define names dialog (Ctrl + F3), pivot table takes data from the updated range correctly.
Comment 2 GerardF 2015-05-08 19:38:15 UTC
(In reply to vice from comment #0)

>   In attachment example, I create the named range Test as $A$1:$C3
>   Notice the absence of $ before the last row number
>   This is intentional to allow the range to increase adding rows

There is no need to use mixed reference for named range.
Named range is expanded with absolute reference.

However using relative reference is problematic in this case (and many others) as "test" range is not the same depending on where you use this name (pivot table or formula).

If you want to know what I try to esplain, do this:
In cell F1, write "=test" (without quotes) and validate with Ctrl+Shift+Enter.
Now do the same un cell F15.

Did you see what I mean?
Comment 3 GerardF 2015-05-08 19:44:08 UTC
Already reported and closed by dev. :(

*** This bug has been marked as a duplicate of bug 74052 ***
Comment 4 GerardF 2015-05-08 19:45:34 UTC
Sorry... wrong bug. :(
Comment 5 vice 2015-05-08 20:31:19 UTC
I see.
Thanks for the quick answer.
Sorry for the noise.
Comment 6 m_a_riosv 2015-05-08 20:45:56 UTC
Some explanations here:

https://bugs.documentfoundation.org/show_bug.cgi?id=76402&redirected_from=fdo#c4

Only absolute references for named ranges are adapted when inserting, deleting, etc. inside their range. Relative references are not modified.