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
Post a Comment