Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count Aggregation with a 'not in' Filter Leading to Miscalculated Total Value #2478

Open
kryaksy opened this issue Dec 13, 2023 · 0 comments
Labels
bug Concrete, reproducible bugs

Comments

@kryaksy
Copy link

kryaksy commented Dec 13, 2023

Bug Report

We have identified an issue where the total value is being miscalculated whenever a new data entry containing a value that should be excluded (based on 'Not In' filter) is inserted. This issue arises specifically in the context of count aggregation.

Screen.Recording.2023-12-13.at.15.55.23.mov

Interestingly, when the configuration is altered and then reverted to its original state, the recalculated total value is correct. This suggests that the issue might be related to the initial calculation process when new data is inserted.

Steps to Reproduce:

Codesandbox link

Expected Result:

Expecting the system to accurately calculate the total value, excluding entries specified in the 'Not In' filter.

Actual Result:

The system is miscalculating the total value by incorrectly including entries that should be excluded under the 'Not In' filter. This miscalculation is resulting in an illogical and incorrect total value, especially noticeable after the most recent update.

Environment:

  • perspective@2.7.1
  • codesandbox
@timkpaine timkpaine added the bug Concrete, reproducible bugs label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Concrete, reproducible bugs
Projects
None yet
Development

No branches or pull requests

2 participants