Bug 96241 - Pivot table fails to aggregate boolean categories
Summary: Pivot table fails to aggregate boolean categories
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.4.6.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-04 11:19 UTC by Andreas Säger
Modified: 2015-12-04 14:19 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Data and 2 pivot tables (14.76 KB, application/x-zip)
2015-12-04 11:21 UTC, Andreas Säger
Details
Sample file adding one more field to count. (19.49 KB, application/vnd.oasis.opendocument.spreadsheet)
2015-12-04 13:41 UTC, m_a_riosv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Säger 2015-12-04 11:19:06 UTC
Copied from AOO bugzilla https://bz.apache.org/ooo/show_bug.cgi?id=126718

Forum topic: https://forum.openoffice.org/en/forum/viewtopic.php?f=9&t=80635
The attached spreadsheet tries to resolve the problem by appending a calculated field =ISBLANK($C2) to the source table.
The only the FALSE values are reflected in the pivot table.
Surprisingly, turning the boolean into a text field with 2 categories =IF(ISBLANK($C2);"Yes";"No") makes no difference. Only the "No" values will aggregate.
Conversion of formulas to two constant values makes no difference.
The aggragation works when there are more than two different values.
The attached file contains a source table, a wanted result and a pivot sheet with 2 pivots, one where the aggregation of a boolean field fails and another one where the aggregation of 3 values works.
Comment 1 Andreas Säger 2015-12-04 11:21:02 UTC
Created attachment 121010 [details]
Data and 2 pivot tables
Comment 2 m_a_riosv 2015-12-04 13:41:19 UTC
Created attachment 121014 [details]
Sample file adding one more field to count.

Hi @Andreas,

seems that what are not counted are the empty cells of "PC" field, instead use "PC" using another field to count, can be counted.

I'm not sure the second one works their total is also 103.

Must be empty cells counted?
Comment 3 Andreas Säger 2015-12-04 13:51:59 UTC
Ouch! You got me. Of course it can not count empty PC. I have chosen an inadequate data field.
Comment 4 m_a_riosv 2015-12-04 14:19:16 UTC
Thanks for the confirming.

Closed as not a bug, please if you are not agree reopen it.