C#、ASP.net 中的 rdlc 报告

发布于 2024-11-07 16:36:35 字数 333 浏览 0 评论 0原文

在报告中,我有以下专栏,

TIN_Number,Period,Tax_pay,Tax_credited

我每年有四个季度的周期。例如,如果我在 200704200903 之间给出句点,那么它会打印 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

只为守护你 2024-11-14 16:36:35

您希望如何报告并不太清楚 - 如果您不想针对它进行报告,为什么您的数据中需要 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.

心如狂蝶 2024-11-14 16:36:35

创建一个名为“first_of_month”的公式字段。假设周期是字符串字段,请将以下内容添加到公式文本中:

//convert period to a date at the first of the month
//creating a date field gives you formatting flexibility.
Date({TABLE.period}[1 to 4], {TABLE.period}[5 to 6], 1)

使用 {@first_of_month} 作为其源插入一个组。从“将打印此部分:”组合框中选择“每个季度”。

将汇总字段添加到组的页脚部分

将组移动到 TIN 上的组“上方”/“外部”

** 编辑 **

另一种选择是创建一个“季度”公式并对其进行分组。公式的文本将为(再次假设它是一个字符串):

//get month and convert to number
Numbervar MM := ToNumber({TABLE.period}[5 to 6]);

//calculate quarter
Ceiling(MM/3);

Create a formula field, named 'first_of_month'. Assuming that the period is a string field, add the following to the formula's text:

//convert period to a date at the first of the month
//creating a date field gives you formatting flexibility.
Date({TABLE.period}[1 to 4], {TABLE.period}[5 to 6], 1)

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):

//get month and convert to number
Numbervar MM := ToNumber({TABLE.period}[5 to 6]);

//calculate quarter
Ceiling(MM/3);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文