1

I am using SSRS Report Builder.

My query returns permits for each user:

user1   permit1
user1   permit2
user1   permit3
user2   permit2
user2   permit4
...

How can I create a report like this?

USER    PERMITS
------------------------------------
user1   permit1   permit2   permit3
user2   permit2   permit4
...

Or even better:

USER   PERMIT1   PERMIT2   PERMIT3   PERMIT4
-----------------------------------------------
user1     x         x         x
user2               x                   x
...

The difficulty is that the column "Permit" is not a group of set values. We will add new permits and remove frequently.

Thanks for any assistance.

4

1 回答 1

1

您正在寻找Matrix Control。在此控件中,您将在第一(用户)列上对行进行分组,并在第二(许可)列上对列进行分组。在单元格中,您可以检查许可证的值,如果已设置,则绘制一个“x”。示意性地,该控件将如下所示:

 ---------+-----------------------------------------------
|         | [Permit]                                      |
|---------+-----------------------------------------------
| [User]  | =Iif(Fields!Permit.Value Is Nothing, "", "x") |
 ---------+-----------------------------------------------
于 2012-11-28T15:30:11.730 回答