简体   繁体   English

SSRS Matrix单元格格式化

[英]SSRS Matrix cells formatting

I have a data that looks like similar to below. 我有一个类似下面的数据。

Data: 数据:

Type   Color
Pen    Black
Pen    Blue
Pen    Red
Pencil Black
Pencil Red

I am trying to use it to show the desired result in ssrs which is shown below. 我正在尝试使用它在ssrs中显示所需的结果,如下所示。

Desired Result: 所需结果:

Pen    Pencil
Black  Black
Blue   Red
Red

Current Issue: 目前的问题:

Pen    Pencil
Black  Black
Blue
Red    Red

I am getting empty rows which I want to remove. 我收到要删除的空行。 If anyone can provide an example on how to format it appropriately, I would really appreciate it. 如果有人可以提供有关如何正确格式化的示例,我将不胜感激。

You have to nest a table in the matrix detail. 您必须在矩阵详细信息中嵌套表格。

In the matrix, drag a table to the detail textbox. 在矩阵中,将表格拖到详细信息文本框。 Remove table header and footer and leave one column in the detail. 删除表的页眉和页脚,并在详细信息中保留一列。 Set the table to have the same dataset as the matrix and filter the table with the Type field. 将表设置为具有与矩阵相同的数据集,并使用“类型”字段过滤表。

在此处输入图片说明

在此处输入图片说明

Result: 结果:

在此处输入图片说明

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

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