roberioguedelho opened a new issue, #6346:
URL: https://github.com/apache/incubator-devlake/issues/6346

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   We note that the value for the median is incorrect in cases where there are 
only 2 or 1 incidents in that month.
   
   ### What do you expect to happen
   
   the median value is correct.
   
   ### How to reproduce
   
   data taken directly from the devlake database:
   
   
![error](https://github.com/apache/incubator-devlake/assets/68553100/e144dbb9-e4bd-414c-86c0-1c6e462660c7)
   
   We can see that for the month 23/04 we have only two non-zero lead times 315 
and 670, as we only have two values, the median is the arithmetic average of 
this value, which results in 492.5 but the value presented in DevLake for that 
month is 0.
   
   <img width="739" alt="Captura de Tela 2023-10-26 às 09 24 16" 
src="https://github.com/apache/incubator-devlake/assets/68553100/a0ca014f-4dc0-4ac7-a11f-2f00d5a074e1";>
   
   this also occurs for other months that have 2 or 1 incidents.
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   v0.19.0-beta5
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to