[GH-ISSUE #4730] [Bug] calculation default value for average is 0 #2120

Closed
opened 2026-03-23 21:19:50 +00:00 by mirror · 0 comments
Owner

Originally created by @richardshiue on GitHub (Feb 24, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4730

Originally assigned to: @Xazin on GitHub.

Bug Description

When there are no non-zero rows in the database, the average result shows up as zero.

How to Reproduce

Add an average calculation to a number field

Expected Behavior

It should not appear as he average of an empty set is undefined.

Operating System

macOS

AppFlowy Version(s)

0.5.0

Screenshots

Screenshot 2024-02-24 at 11 58 28 PM

Additional Context

No response

Originally created by @richardshiue on GitHub (Feb 24, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4730 Originally assigned to: @Xazin on GitHub. ### Bug Description When there are no non-zero rows in the database, the average result shows up as zero. ### How to Reproduce Add an average calculation to a number field ### Expected Behavior It should not appear as he average of an empty set is undefined. ### Operating System macOS ### AppFlowy Version(s) 0.5.0 ### Screenshots ![Screenshot 2024-02-24 at 11 58 28 PM](https://github.com/AppFlowy-IO/AppFlowy/assets/71320345/b7981bf7-fcf5-4481-8b9c-d63a6d32f2f2) ### Additional Context _No response_
mirror 2026-03-23 21:19:50 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#2120
No description provided.