简体   繁体   English

SQL Report Builder 3.0从数据集中对数据分组

[英]SQL Report Builder 3.0.Grouping Data from Dataset

Good day Everybody. 大家好。

I am working on Sql Report Builder 3.0. 我正在使用Sql Report Builder 3.0。 I have a dataset with X records. 我有一个包含X条记录的数据集。 From the data set i Supposed to display one or more table based on Some conditions. 我想根据某些条件从数据集中显示一个或多个表格。 How can i do that..? 我怎样才能做到这一点..? I dint get solution from Google. 我从Google获得解决方案。 Pls help me in this.. 请帮助我。

Scenario: 场景:

Let say I have 4 Records in Dataset. 假设我在数据集中有4条记录。


OrderNo _ __ Product _ __ DeliveryDate _ _____Address 订单号_ __产品_ __交货日期_ _____地址

11223 ---------- Prod1 ----------20-Sep-2013 ---------- 31, Woodlands drive 11223 ----------产品1 ---------- 2013年9月20日---------- 31,Woodlands Drive

11223 ---------- Prod2 ----------20-Sep-2013 ---------- 31, Woodlands drive 11223 ----------产品2 ---------- 2013年9月20日---------- 31,Woodlands Drive

23688 ---------- Prod1 ----------20-Sep-2013 ---------- 227, North Avenue 23688 ----------产品1 ---------- 2013年9月20日----------北大街227

23688 ---------- Prod2 ----------20-Sep-2013 ---------- 227, North Avenue 23688 ---------- Prod2 ---------- 2013年9月20日----------北大街227

I want to display my report as follows, 我想按以下方式显示我的报告,

Address: 31, Woodlands drive 地址:兀兰路31号

Order_No ---------- Product 订单号----------产品

112233 ---------- Prod1 112233 ----------产品1
112233 ---------- Prod2 112233 ----------产品2

. . .

Address: 227, North Avenue 地址:北大街227号

Order_No.......Product 订单号...产品

236882 ---------- Prod1 236882 ----------产品1
236882 ---------- Prod2 236882 ----------产品2

-- Thanks, Shami -谢谢沙米

Set up a standard SSRS Table, then add a Row Group grouped by Address . 设置一个标准的SSRS表,然后添加一个按Address分组的行组 Make sure to include a Group Header row. 确保包括“ 组头”行。

You may need to create the left-most column that gets added by default when you add a Row Group. 您可能需要创建最左侧的列,该列在添加行组时默认添加。

Add another Group Header row. 添加另一组标题行。

In the first Group Header row, set a TextBox to display the Address field. 在第一组标题行中,设置一个TextBox以显示“ Address字段。

In the second Group Header row, type the column header details in the Textboxes. 在第二组标题行中,在文本框中键入列标题的详细信息。

In the detail row that was created with the table, add the OrderNo and Product fields. 在使用表创建的明细行中,添加“ OrderNo和“ Product字段。

See Adding a Table to the Report and Adding Grouping and Totals . 请参阅向报表添加表以及添加分组和总计

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM