我在 MSBI 查询编辑器中编写了一个查询,如下所示,
SELECT
DATEPART(year,tblReservation.Date) AS "Year",
tblReservation.Room AS "Room No.",
COUNT(tblReservation.Room) AS "No. Of Times",
CASE
WHEN PaidFor = 1
THEN
COUNT(tblReservation.Room)*tblPrice.Price
ELSE 0
END AS "ActualRevenue",
COUNT(tblReservation.Room)*tblPrice.Price AS "TargetRevenue"
FROM tblReservation INNER JOIN tblRoom
ON tblReservation.Room = tblRoom.RoomNumber
INNER JOIN
tblPrice ON tblRoom.PriceID = tblPrice.PriceID
GROUP BY tblReservation.Room, tblPrice.Price,
tblReservation.PaidFor, DATEPART(year,tblReservation.Date)
这个查询向我显示了这样的输出(矩阵布局 MSBI),
我的查询输出为,
我的报告设计布局是,
我想要的是,在我的矩阵布局中,房间号。100 是 1999 年和 2013 年的两倍。它占据了两行。我希望它在我的矩阵布局中的一行中。我应该怎么做 ?谢谢。