English 中文(简体)
2005年SSRS 图表中的有条件数字:如何?
原标题:SSRS 2005 conditional count in chart: how-to?

我有一栏图,希望24小时显示无发票销售的百分比,24小时显示无发票销售的百分比。 这些数据应当按日期分类,因此,在24小时内,我可以看到发票销售额的百分比,而不是发票销售。

我的数据集包括:

  • sales id,
  • sales status (only invoiced are permitted and I took care of that in my query),
  • date and
  • nbDays, which is bound to a function that determines if the sale is invoiced in 24h. (if the nbDays < 3 it s in 24h otherwise it s not)

我的图表显示: 1-24年发票,2-24小时未发票。 因此,我把日田拖到类田地,向数据区出售两次。 设想是使用24小时开出的发票,而其他则使用。

我怎么能写有条件的表述,以达到这一要求,使数据领域销售根据我的情况显示数据?

我试图这样做,但却没有工作:

=count(iif(fields!nbDays.value <3, 1,0))  

并且:

=iif(fields!nbDays.value <3, count(fileds!salesid.value),0)
问题回答

使用第一个单元,但使用一个特别论坛,而不是一个COUNT。 例如。

=sum(iif(fields!nbDays.value <3, 1,0))  




相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

SQL server: Can NT accounts be mapped to SQL server accounts

In our database we have an SQL server account that has the correct roles to access some of the databases. We are now switching to windows authentication and I was wondering if we can create a NT user ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8

热门标签