Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google sheets 返回日期重要时DataStudio中唯一值的数目_Google Sheets_Google Data Studio - Fatal编程技术网

Google sheets 返回日期重要时DataStudio中唯一值的数目

Google sheets 返回日期重要时DataStudio中唯一值的数目,google-sheets,google-data-studio,Google Sheets,Google Data Studio,我在谷歌电子表格中有我的数据集,我想知道特定日期范围内的唯一客户数: 假设这是我的数据集 Customer Date A 22/07/2017 B 24/07/2017 A 23/07/2017 我使用此公式COUNT\u DISTINCT(Customer)但是,因为第3行的日期与第1行不同,所以输出为3(但是,我希

我在谷歌电子表格中有我的数据集,我想知道特定日期范围内的唯一客户数:

假设这是我的数据集

Customer                  Date
A                         22/07/2017
B                         24/07/2017
A                         23/07/2017

我使用此公式
COUNT\u DISTINCT(Customer)
但是,因为第3行的日期与第1行不同,所以输出为3(但是,我希望有2作为我的输出)

如果您想知道A列中的唯一值的数量,而不考虑日期,那么此公式是否有效:

=COUNTUNIQUE(A2:A)

或者您想将其与特定日期范围相结合,然后:


=COUNTUNIQUE(FILTER(A2:A,B2:B>=datefrom,B2:B如果您想知道列A中的唯一值的数量,而不考虑日期,那么此公式是否有效:

=COUNTUNIQUE(A2:A)

或者您想将其与特定日期范围相结合,然后:

=COUNTUNIQUE(过滤器(A2:A,B2:B>=datefrom,B2:B