Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/26.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/3/clojure/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
Sql 用于Excel提取的QuickBooks中的自定义QODBC查询_Sql_Excel_Quickbooks_Qodbc_Vba - Fatal编程技术网

Sql 用于Excel提取的QuickBooks中的自定义QODBC查询

Sql 用于Excel提取的QuickBooks中的自定义QODBC查询,sql,excel,quickbooks,qodbc,vba,Sql,Excel,Quickbooks,Qodbc,Vba,我正在使用QODBC将QB数据提取到Excel中。我想要一份按客户总结销售情况的报告。在我开始使用链接到客户的作业之前,下面的查询是完美的。现在。。。数据将作业作为单独的行列出给客户,而不是将作业汇总给客户。如果可能,我想按客户对所有销售数据进行分组 sp_report CustomSummary show Label, Amount parameters DateFrom = {d'2017-01-01'}, DateTo={d'2017-12-31'}, AccountFilterType=

我正在使用QODBC将QB数据提取到Excel中。我想要一份按客户总结销售情况的报告。在我开始使用链接到客户的作业之前,下面的查询是完美的。现在。。。数据将作业作为单独的行列出给客户,而不是将作业汇总给客户。如果可能,我想按客户对所有销售数据进行分组

sp_report CustomSummary show Label, Amount parameters DateFrom = {d'2017-01-01'}, DateTo={d'2017-12-31'}, AccountFilterType= 'OrdinaryIncome', SummarizeRowsBy = 'Customer', SummarizeColumnsBy = 'Month'
where RowType='DataRow'

请尝试下面列出的存储过程

sp_report CustomSummary show Label, Amount parameters DateFrom = {d'2021-01-01'}, DateTo={d'2021-12-31'}, AccountFilterType= 'OrdinaryIncome', SummarizeRowsBy = 'Customer', SummarizeColumnsBy = 'Month' where RowType='SubtotalRow'
使用
RowType='SubtotalRow'
时,您应该得到每个客户的所有作业的总数