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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/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 Google sheets动态预测查询给出值错误_Google Sheets_Google Sheets Formula_Array Formulas_Google Sheets Query_Forecast - Fatal编程技术网

Google sheets Google sheets动态预测查询给出值错误

Google sheets Google sheets动态预测查询给出值错误,google-sheets,google-sheets-formula,array-formulas,google-sheets-query,forecast,Google Sheets,Google Sheets Formula,Array Formulas,Google Sheets Query,Forecast,我试图在Google sheets中的查询中使用动态预测公式,它给出以下值错误: 错误函数预测参数1需要数值。但是 “查询所有订单日期”是文本,不能强制为数字 但是,它给出了一个结果,可以看到图像。我需要一些帮助,以完善的结果没有价值的错误 查询如下: =QUERY(IMPORTRANGE("https://docs.google.com/spreadsheets/d/............/edit#gid=.......","query!A:B"), "SELECT Col1, SUM(C

我试图在Google sheets中的查询中使用动态预测公式,它给出以下值错误:

错误函数预测参数1需要数值。但是 “查询所有订单日期”是文本,不能强制为数字

但是,它给出了一个结果,可以看到图像。我需要一些帮助,以完善的结果没有价值的错误

查询如下:

=QUERY(IMPORTRANGE("https://docs.google.com/spreadsheets/d/............/edit#gid=.......","query!A:B"), "SELECT Col1, SUM(Col2), COUNT(Col2) WHERE Col1 IS NOT null GROUP BY Col1 ORDER BY Col1 ASC")
=ArrayFormula(FORECAST(filter(A2:A,(N(B2:B)=0)*(A2:A>0)),filter(B2:B,B2:B<>""),filter(A2:A,B2:B<>"")))
动态预测过滤器如下所示:

=QUERY(IMPORTRANGE("https://docs.google.com/spreadsheets/d/............/edit#gid=.......","query!A:B"), "SELECT Col1, SUM(Col2), COUNT(Col2) WHERE Col1 IS NOT null GROUP BY Col1 ORDER BY Col1 ASC")
=ArrayFormula(FORECAST(filter(A2:A,(N(B2:B)=0)*(A2:A>0)),filter(B2:B,B2:B<>""),filter(A2:A,B2:B<>"")))
下面是它的外观:

我需要格式化查询吗?更改预测公式?

尝试:

=ARRAYFORMULA(FORECAST(FILTER(DATEVALUE(A2:A), (N(B2:B)=0)*(A2:A>0)), 
 FILTER(B2:B, B2:B<>""), FILTER(A2:A, B2:B<>"")))
该错误意味着A列中的日期很可能被格式化为纯文本,而不是日期或自动

=ARRAYFORMULA(FORECAST(FILTER(DATEVALUE(A2:A), (N(B2:B)=0)*(A2:A>0)), 
 FILTER(B2:B, B2:B<>""), FILTER(A2:A, B2:B<>"")))

该错误意味着A列中的日期很可能被格式化为纯文本,而不是日期或自动

共享一份工作表副本。请共享一份工作表副本。Hanks,这在某种程度上起作用,但我遇到另一个错误:DATEVALUE参数“QUERY ALL ORDERS Date”无法解析为日期/时间。这是因为它是来自查询的导入。我尝试使用格式C“yyyy-mm-dd”设置查询的格式,但没有成功,此查询看起来是这样的:=QUERYorders_2019,选择C,W我知道如何解决此问题吗?您可以共享一份工作表吗?谢谢,这是可行的,但我遇到另一个错误:DATEVALUE参数“query ALL ORDERS date”无法解析为日期/时间。这是因为它是来自查询的导入。我尝试使用格式C“yyyy-mm-dd”设置查询的格式,但未成功,此查询看起来如下:=QUERYorders\u 2019,选择C,W我可以如何解决此问题?您可以共享一份工作表吗?