C#、ASP.net 中的 rdlc 报告
在报告中,我有以下专栏,
TIN_Number,Period,Tax_pay,Tax_credited
我每年有四个季度的周期。例如,如果我在 200704
到 200903
之间给出句点,那么它会打印 200706,200709,200712,200803,200806,200809,200812,200903
对于一行上的一个 TIN 编号,每一行都具有相同的 TIN 编号。我想将这一时期按季度划分。我想显示每年每个季度的总tax_pay 和Tax_credited 的总和。请给我解决方案。感谢你
In report I have follwing Coloumns
TIN_Number,Period,Tax_pay,Tax_credited
i have period in 4 quater per year. for example If I am giving period between 200704
to 200903
than it is printing 200706,200709,200712,200803,200806,200809,200812,200903
for one TIN number on one row each having same TIN number. I want to seprate this period in quarter wise formate. i want to display sum of total tax_pay and Tax_credited as per quater per year. please give me solution. thank u
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您希望如何报告并不太清楚 - 如果您不想针对它进行报告,为什么您的数据中需要 TIN_Number?
无论如何,无论您说什么,您都需要在
period
字段中添加组,并在组页脚中添加tax_pay 和tax_credited 的总和。How you want your report is not really clear - why do you need TIN_Number in your data if you don't want to report against it?
Regardless, from whatever you have stated, you need to add group on
period
field and in group footer, add sum of tax_pay and tax_credited.创建一个名为“first_of_month”的公式字段。假设周期是字符串字段,请将以下内容添加到公式文本中:
使用 {@first_of_month} 作为其源插入一个组。从“将打印此部分:”组合框中选择“每个季度”。
将汇总字段添加到组的页脚部分
将组移动到 TIN 上的组“上方”/“外部”
** 编辑 **
另一种选择是创建一个“季度”公式并对其进行分组。公式的文本将为(再次假设它是一个字符串):
Create a formula field, named 'first_of_month'. Assuming that the period is a string field, add the following to the formula's text:
Insert a group using the {@first_of_month} as its source. Choose 'for each quarter' from the 'This section will be printed:" combobox.
Add summary fields to the group's footer section
Move group 'above'/'outside' the group on the TIN
** edit **
another option would be to create a 'quarter' formula and group on it. The formula's text would be (again, assuming that it is a string):