我正在努力解決簡單的數據安排問題。在列中垂直顯示ssrs報告數據
我有2列的數據 - 位置和麪積。 默認情況下,數據將顯示如下:
Area1 Location1
Area1 Location2
Area2 Location3
Area3 Location4
我想如下顯示的數據:
Area1 Area2 Area3
Location1 Location3 Location4
Location2
對不起格式化,我希望這是有道理的。 謝謝
編輯 這是我用來獲取數據的實際查詢:在你的榜樣
select a.location_area_code, l.location_code
from stock_location_level as l
inner join stock_location as a
on l.location_code = a.location_code
where l.branch_number = '99' and a.suspended = 'N'
group by a.location_area_code, l.location_code
having SUM(l.physical_quantity) = 0
Order by a.location_area_code, l.location_code
您是否嘗試過使用矩陣? – Schalk 2014-10-28 14:02:50