简体   繁体   中英

Visually representing a denormalized dataset in SQL reporting services

I'm trying to take a denormalized data set and turn it into a report containing a horizontal table layout of data grouped and subgrouped. I realize there are probably better ways to contain the data and better ways to visualize this data, but this is what I have to work with.

Here is the scenario... I have the following CustomerOrderDataTable:

在此输入图像描述

With the following data:

在此输入图像描述

And I'm trying to get it to look like:

在此输入图像描述

The one final requirement on this is to allow for jagged data groups, butting up against each other vertically like:

在此输入图像描述

For your first table you can do something like this.

Set a matrix with one column group, grouped on CustomerId :

在此输入图像描述

There are only two textboxes - one has CustomerName . Insert a table into the other textbox:

在此输入图像描述

在此输入图像描述

This embedded table is grouped on OrderId . OrderDate is displayed in the group header and OrderItemName in the detail row. Since this is embedded in the column group, the table will be repeated for each customer and only display rows in that Scope.

Final result looks like this based on your data:

在此输入图像描述

Not 100% sure about the stacked grouping, but hopefully this will be of some use.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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