Skip to content

Question about MIN() aggregator use #709

@agerard

Description

@agerard

I've made huge progress with my proj. thanks to your help and library, and am in the home stretch (a slightly earlier version can be seen at http://beta.ciesin.columbia.edu/jbwq/) . But am having a problem with figuring out how to avoid 0 as the value returned from the MIN() aggregator for columns with null values(Nulls seem to be seen as 0, but 0 isn't a useful minimum). What I think I'm really needing is "LEAST()" - i.e something that drops all nulls/0 values before aggregating. There are probably ways to make a custom function but I am really hoping not to have to do that at this point. My current workaround is to use MIN(IFNULL(' + selectedParam + ',10000)) so any nulls clearly won't be minimums...just wondering if there's a better way.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions