Bug 118638 - subtotal option loses doesn't contain existing format for column
Summary: subtotal option loses doesn't contain existing format for column
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Eike Rathke
URL:
Whiteboard: target:6.2.0 target:6.1.0.2
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-09 15:13 UTC by Doug
Modified: 2019-12-07 18:51 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
sample calc sheet shows problem (25.20 KB, application/vnd.oasis.opendocument.spreadsheet)
2018-07-09 15:17 UTC, Doug
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Doug 2018-07-09 15:13:55 UTC
Description:
I was analyzing some financial information. One column contained $ amounts. I elected to create subtotals grouped by data in another column. Each subtotal created was not a $ amount it was simply a number with a 1 to 5 digit decimal.

Steps to Reproduce:
1.create subtotal
2.
3.

Actual Results:
no $ and unspecified decimal precision

Expected Results:
should be a $ amount. (I assume the problem exists for all possible cell formats in that it appears existing cell format in no applied.


Reproducible: Always


User Profile Reset: No



Additional Info:
(Partial sample to save space) I will attach the entire file.

06/25/18 01:39 AM	$24.80	5408
06/27/18 09:59 AM	$15.91	5408
	18.5978333333333	5408 Average
04/07/17 08:24 AM	$25.84	5423
05/09/17 07:26 AM	$20.35	5423
06/15/17 12:29 PM	$11.65	5423
08/25/17 09:37 AM	$23.86	5423
08/26/17 04:20 AM	$5.55	5423
09/22/17 04:08 AM	$12.65	5423
	16.65	5423 Average
12/06/17 08:33 AM	$29.04	5433
02/10/18 06:06 AM	$31.24	5433
	30.14	5433 Average
04/13/17 03:15 AM	$23.36	5436
06/06/17 07:26 AM	$27.53	5436
12/20/17 07:28 AM	$2.59	5436
03/14/18 02:37 AM	$30.86	5436
	21.085	5436 Average
01/04/17 05:57 AM	$26.40	5445
Comment 1 Doug 2018-07-09 15:17:02 UTC
Created attachment 143399 [details]
sample calc sheet shows problem
Comment 2 Eike Rathke 2018-07-09 17:01:09 UTC
You can force the number format when in the Subtotals dialog under Options Sort Include formats is checked. Yes, this is not obvious.

That should be preset for the anonymous DB range that is created for the subtotals if no database range exists for the range, from which it would be inherited otherwise (the Keep formatting option there).
Comment 3 Commit Notification 2018-07-09 20:39:24 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=bf34c041ed1869e7e544cf75966c9f42960cb2d3

Resolves: tdf#118638 preset include format patterns for anonymous subtotals

It will be available in 6.2.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Eike Rathke 2018-07-09 20:40:40 UTC
Pending review for 6-1 https://gerrit.libreoffice.org/57206
Comment 5 Commit Notification 2018-07-10 00:21:52 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "libreoffice-6-1":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=822add7e1de83ba3a405c1927cb0924c7d6a748a&h=libreoffice-6-1

Resolves: tdf#118638 preset include format patterns for anonymous subtotals

It will be available in 6.1.0.2.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 6 Commit Notification 2018-08-05 18:47:25 UTC
Zdeněk Crhonek committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=d3fabecde3efb1b186dd26f8c526bbf83dbd16d6

uitest for bug tdf#118638

It will be available in 6.2.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 7 raal 2019-12-07 18:51:51 UTC
The test exist, set status to Verified.