我想只顯示前10行並隱藏列中的剩餘行。爲隱藏的ssrs設置表達式
在Tablix屬性 - >可見性 - >基於表達式顯示或隱藏的情況下,此表達式(Set expression for:Hidden)是什麼?
我的數據集名稱是Top50CustomerSQL; 我的專欄名稱是Supplier;
這種情況下的表達式?
SQL Code
SELECT s.[CusNo] Supplier,
RTRIM(CAST(s.[Customer] AS VARCHAR(50))) AS Name,
s.[ConcessionNo] Concession,
RTRIM(CAST(s.[ConcessionName] AS VARCHAR(50))) AS ConcessionName,
sum(case when s.Date between convert(date,dateadd(wk, datediff(wk, 0, getdate()) - 1, 0) - 1) and convert(date,dateadd(wk, datediff(wk, 0, getdate()) - 1, 0) + 5)
then s.SELLINC else 0 end) ActualSales,
sum(case when s.Date
BETWEEN
convert(varchar(10), DATEADD(day, DATEDIFF(day, '19000107', DATEADD(month, DATEDIFF(MONTH, 0, CONVERT(date, CONVERT(VARCHAR(4), (CASE WHEN MONTH(GetDate()) = 1 THEN CONVERT(VARCHAR(4), GetDate(), 112) - 1 ELSE CONVERT(VARCHAR(4), GetDate(), 112) END), 112) + '0101')), 30))/7 * 7, '19000107'), 120)
AND
Convert(date, dateadd(wk, datediff(wk, 0, GETDATE()) - 1, 0) + 5)
then s.SELLINC else 0 end) YrToDateActual
FROM [dbo].[CustomerReports] s
WHERE s.BRN = 1 or s.BRN = 2 or s.BRN = 3 or s.BRN = 4 or s.BRN = 5 or s.SELLINC is null or s.SELLINC = '0'
GROUP BY s.[CusNo], s.[Customer], s.ConcessionNo, s.ConcessionName
order by YrToDateActual desc
謝謝Pete,我知道會有更簡單的方法! –
@ pete-rennard-cumming我如何在單獨的行中獲得總和 – user2331670
右鍵單擊表格單元格並轉到「插入行」時,有幾個選項。如果你想爲每個單獨的供應商提供一筆款項,那麼使用「內部組」;如果你想要所有供應商的款項,則使用「Outside Group」。 –