Bug 99429 - : Inconsistent result for "AVERAGE" function
Summary: : Inconsistent result for "AVERAGE" function
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.2.0.0.alpha0+
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-21 10:01 UTC by c.cottignies
Modified: 2017-03-01 10:37 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Calc File with weigh data table and graph (393.24 KB, application/vnd.oasis.opendocument.spreadsheet)
2016-04-21 10:01 UTC, c.cottignies
Details

Note You need to log in before you can comment on or make changes to this bug.
Description c.cottignies 2016-04-21 10:01:24 UTC
Created attachment 124546 [details]
Calc File with weigh data table and graph

The formula "=MOYENNE(B513:B$991)" gives the same result in different cells in different row/column, except in one cell position. This error did not exist with the previous OO version.  
See the attached Calc File around row# 513 in first sheet "Table_Poids". Note that duplication of the formula in various cells is for test only. In fact, all cells in column L from row 3 to 513 are not correct. Thanks for help.
Christian
Comment 1 GerardF 2016-04-21 12:37:28 UTC
Go to Tools > Options > LibreOfficeDev, in OpenCL tab :
Disable one (by one) or both options
"Allow use of sofware interpreter" and "Allow use of OpenCL".

And tell us if one of these options change something in results.
Comment 2 c.cottignies 2016-04-21 16:15:37 UTC
Only the "Allow use of OpenCL" option is available. It was enabled.. I disabled it. Result is: No Change, the inconsistance remains ....
Comment 3 raal 2016-04-21 17:21:53 UTC
Hard recalc CTRL+Shift+F9 helps. File created in LibreOffice/5.0.5.2$Windows_x86
Comment 4 c.cottignies 2016-04-22 10:32:07 UTC
Thanks for helping.
It looks like it works, but I had to copy/paste the formulas in the cells. I think automatic recalculation would have been done after closing/reloading the file...
While in a spreadsheet, clicking Options-> LibreOfficecalc -> Formule, there is a  field for "file loading recalculation" option (always/no/On demand), to be specified for Excel files or ODF files not saved by OpenOffice. Default was "no recalculation"... may be it applies also for a file saved by an earlier version of OpenOffice!.it was my case.... Any way that does not explain why recalculation was not performed for the first 512 rows and correctly done for the rest of the file....
I did not find in documentation the way to manually perfom a recalculation
Comment 5 raal 2016-04-22 14:50:43 UTC
(In reply to c.cottignies from comment #4)
> Thanks for helping.
> It looks like it works, but I had to copy/paste the formulas in the cells. I
> think automatic recalculation would have been done after closing/reloading
> the file...
> While in a spreadsheet, clicking Options-> LibreOfficecalc -> Formule, there
> is a  field for "file loading recalculation" option (always/no/On demand),
> to be specified for Excel files or ODF files not saved by OpenOffice.
> Default was "no recalculation"... may be it applies also for a file saved by
> an earlier version of OpenOffice!.it was my case.... Any way that does not
> explain why recalculation was not performed for the first 512 rows and
> correctly done for the rest of the file....

The problem is that in the file are stored bad values(results) and when recalculation is turned off (for ods files is default off), then LO just show these bad values. When you set recalculation for .ods , then you should get good results. We need reproducible case where we can see bad results after save file.

> I did not find in documentation the way to manually perfom a recalculation

 CTRL+Shift+F9 or data-Calculate-Recalculate(F9)
https://help.libreoffice.org/Calc/Recalculate
Comment 6 Buovjaga 2016-05-02 12:44:00 UTC
(In reply to raal from comment #5)
> We need reproducible case where we can see bad results after save file.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided such a requested document.
Comment 7 How can I remove my account? 2016-07-22 15:33:35 UTC
Assuming what comment #9 says is true, I think there is really nothing that could be done here. If you have an .ods document with bad pre-calculated formula results in it, and LO does not recalculate upon loading, you have to recalculate manually and re-save the document.

Making LibreOffice always recalculate (removing the option) would probably be seen as a huge regression, as it would slow down loading of all .ods documents.

Another thing then is whether the AVERAGE function *now* produces incorrect results. But there is nothing in this bug report that would say so, is there?
Comment 8 QA Administrators 2017-01-31 00:29:55 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2017-03-01 10:37:17 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-20170301