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

Initial experiments using the new Database query logic with Conditional Statistical Functions #1880

Merged

Conversation

MarkBaker
Copy link
Member

Initial experiments using the new Database query logic with Conditional Statistical functions (e.g. COUNTIF(), AVERAGEIF(), COUNTIFS(), etc)

This is:

- [ ] a bugfix
- [X] a new feature

Checklist:

Why this change is needed?

Using the new Database function query logic to support all relevant forms of queries in the Conditional Statistical functions, including support for boolean datatypes, wildcard text, etc

Also using this to refactor the Conditional functions outside of the main Statistical class, and into a dedicated class as part of the big refactoring of all Excel function implementations

@MarkBaker
Copy link
Member Author

Down to just 2 failing tests; and those are related to how MS Excel handles counting values, and the differences between literals and values from cells... MS! Why do you make things so inconsistent?

MarkBaker added 11 commits February 26, 2021 13:49
Some refactoring will help with building the database/condition sets in a cleaner manner; and need to add a more comprehensive set of unit tests to cover more variations and edge cases
…n set and database for AVERAGEIFS(), MAXIFS() and MINIFS()

This should be further rationalised for memory improvement by avoiding any modification to the args
…s for edge cases... but feeling very satisfied that this is a majr improvement to code quality, and that it adds major additional support for booleans, dates, percentages, and wild-carded strings to Database functions and Conditional functions
…ll protecting our * and ? wildcard characters
@MarkBaker MarkBaker merged commit 08673b5 into master Feb 27, 2021
@MarkBaker MarkBaker deleted the Statistical-Functions-Experiments-with-Conditional-Functions branch February 27, 2021 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant