Issue 101198 - datapilot: allow to select named/database ranges as source ranges
Summary: datapilot: allow to select named/database ranges as source ranges
Status: CONFIRMED
Alias: None
Product: Calc
Classification: Application
Component: ui (show other issues)
Version: OOO310m9
Hardware: Unknown All
: P3 Trivial with 9 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-19 13:55 UTC by Oliver Brinzing
Modified: 2015-02-11 20:12 UTC (History)
4 users (show)

See Also:
Issue Type: FEATURE
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
demo for datapilot (27.33 KB, application/vnd.oasis.opendocument.spreadsheet)
2009-04-20 17:48 UTC, Oliver Brinzing
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Oliver Brinzing 2009-04-19 13:55:31 UTC
it seems not to be possible to use a named/database range as a
source range for a datapilot table.
one can select only the "current selection" or a real "database source" from the
autopilot dialog.

excel seems to handle named ranges ...

background: c't magazine no 9/2009 page 173
Comment 1 kyoshida 2009-04-19 17:06:23 UTC
Good point.  BTW is there a web version of the magazine article you cited?
Comment 2 Oliver Brinzing 2009-04-20 08:23:20 UTC
unfortunately there is only a non readable preview
http://www.heise.de/ct/inhalt/2009/09/170/


Comment 3 Oliver Brinzing 2009-04-20 17:47:42 UTC
in excel it's possible to add a named range, e.g. datarange
=BEREICH.VERSCHIEBEN( $A$1;;;;ANZAHL2($A:$A);ANZAHL2($1:$1))

now one can use the name "datarange" as a source for the pivot table.
as a result, the named range will always point to the correct data range,
even if size changes

for oo the author suggest to use a cell formula with a macro, e.g.:
="A1:"&ADRESSE(ANZAHL2($A$1:$A$20)+1;ANZAHL2($A$1:$Z$1);4;1)

and than start a macro to set the range (e.g. A1:E15) ...

please have a look at the attachment ...

while it's possible to define a named range in oo using
="A1:"&ADRESSE(ANZAHL2($A$1:$A$20)+1;ANZAHL2($A$1:$Z$1);4;1)
you cannot use it for a data source
Comment 4 Oliver Brinzing 2009-04-20 17:48:41 UTC
Created attachment 61691 [details]
demo for datapilot
Comment 5 jeffooo 2014-03-17 11:11:14 UTC
This is same problem with chart (issue 64604) and print range (issue 104875).

Named range with OFFSET function is more powerfull.

Add me to CC,
Regards