我已经在哪个报告参数中指定了值
Label Value
Occupancy Occupancy
Pitch Nights Sold PitchNightsSold
Capacity Capacity
Pitch Nights Sold And Capacity PitchNightsSoldAndCapacity
Pitch Nights Sold And Occupancy PitchNightsSoldAndOccupancy
Pitch Nights Sold Capacity And Occupancy PitchNightsSoldCapacityAndOccupancy
主要数据集:
SELECT
OccupancyDetail.CalendarYear,
OccupancyDetail.CalendarMonth,
SUM(OccupancyDetail.No_of_Nights) AS No_of_Nights,
SUM(OccupancyDetail.Capacity) AS Capacity
FROM
OccupancyDetail INNER JOIN
Site ON OccupancyDetail.Site_Skey = Site.Site_Skey
WHERE (OccupancyDetail.ReferenceDate = convert(Date,getdate()))
AND CASE WHEN @Time = 'YEAR' THEN CAST(CalendarYear as varchar(4)) else CalendarMonth + ' ' + CAST(CalendarYear as varchar(4)) end in (@Dates)
AND ((@ReportingLevel = 'BDM' AND Site.BDM in(@BDM_Region_Site))
OR (@ReportingLevel = 'Region' AND Site.Region in (@BDM_Region_Site))
OR (@ReportingLevel = 'SiteName' AND Site.SiteName in (@BDM_Region_Site)))
GROUP BY OccupancyDetail.ReferenceDate,OccupancyDetail.CalendarYear, OccupancyDetail.CalendarMonth
时间数据集:
select
DateChoice
FROM
(
select distinct
CalendarYear,
1 as MonthNumber,
CAST(CalendarYear as varchar(4)) as DateChoice
from Time
where @Time = 'YEAR'
union all
select Distinct
CalendarYear,
MonthNumber,
CalendarMonth + ' ' + CAST(CalendarYear as varchar(4)) as DateChoice
from Time
where @Time = 'MONTH'
) as QRYDATA
ORDER BY CalendarYear,MonthNumber
站点数据集:
SELECT DISTINCT BDM AS SiteInfo FROM Site
WHERE @ReportingLevel = 'BDM'
UNION ALL
SELECT DISTINCT Region FROM Site
WHERE @ReportingLevel = 'Region'
UNION ALL
SELECT DISTINCT SiteName FROM Site
WHERE @ReportingLevel = 'SiteName'
在 Report Builder 3.0 上,我创建了 6 个隐藏的报告,除非在参数中选择它:
报告代码可见性字符串:
=iif(Parameters!WhichReport.Value(0) = "Occupancy", False, True)
但我想要做的是使参数成为一个多选参数,这样有人可以选择两个图表而不是 1 或选择所有 6 个等,但无论选择什么,所有其他报告都需要保持隐藏。这可以做到吗?如果可以,怎么做?
谢谢
韦恩