I do not know about pivot tables, but you can achieve this in SSRS as shown below
Select UserName, RightName From users u INNER JOIN RightMembership rm on rm.UserID = u.UserID INNER JOIN Rights r on rm.RightID = r.RightID
Use this query as a stored procedure or query and default order and
Create a dataset and data source
Insert matrix into report
In the rows, select the UserName field from the created dataset. In the columns, select the RightName field from the created dataset. In "Data" use this expression below, after which you will get the desired result = IIF (Fields! UserName.Value = nothing, nothing, "X") Since the data in the matrix
source share