How to count number of Occurrences in a Column

I have a dataset where I am trying to get a count of each occurrence a value in a specific column has:

For the example above I would want the result to return that there are Two : "0's", Three: "Nulls", and Three: "1's".

Tagged:

Best Answer

  • ColemenWilson
    edited February 13 Answer ✓

    Easiest thing to do would be to create a table card and have 2 columns on it:
    1. New Product ordered/ bool
    2. A count of New Product ordered/ bool that is a new field that handles nulls. It will look like this:
    IFNULL(New Product ordered/ bool,'null')

    You'll need to create a new field that handles nulls. It will look like this:
    IFNULL(New Product ordered/ bool,'null')

    If I solved your problem, please select "yes" above

Answers

  • ColemenWilson
    edited February 13 Answer ✓

    Easiest thing to do would be to create a table card and have 2 columns on it:
    1. New Product ordered/ bool
    2. A count of New Product ordered/ bool that is a new field that handles nulls. It will look like this:
    IFNULL(New Product ordered/ bool,'null')

    You'll need to create a new field that handles nulls. It will look like this:
    IFNULL(New Product ordered/ bool,'null')

    If I solved your problem, please select "yes" above