google spreadsheet - Returns the number of unique values in data studio when date matters -


i have dataset in google spreadsheet , wish know unique number of customers in specific date range:

let's data set

customer                  date                         22/07/2017 b                         24/07/2017                         23/07/2017 

i use formula count_distinct(customer) because row 3 have different date row 1 output 3 (however, wish have 2 output)

if want know number of unique values in column regardless of date formula work:

=countunique(a2:a)

or want combine specific date range then:

=countunique(filter(a2:a,b2:b>=datefrom,b2:b<=dateto))

in formula, datefrom , dateto can either value or cell reference


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -