Skip to content

Commit

Permalink
Merge pull request #1662 from CartoDB/josema/chNULL/fix_formula_count
Browse files Browse the repository at this point in the history
Fix formula count
  • Loading branch information
Jesus89 committed Jul 6, 2020
2 parents a2f0105 + 97d0e36 commit bf0ce41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cartoframes/viz/widgets/formula_widget.py
Expand Up @@ -50,8 +50,8 @@ def formula_widget(value, operation=None, title=None, description=None, footer=N


def _get_value_expression(operation, value, is_global):
if value == 'count':
formula_operation = _get_formula_operation(value, is_global)
if value == 'count' or operation == 'count':
formula_operation = _get_formula_operation('count', is_global)
return formula_operation + '()'
elif operation in ['avg', 'max', 'min', 'sum']:
formula_operation = _get_formula_operation(operation, is_global)
Expand Down

0 comments on commit bf0ce41

Please sign in to comment.