私は、Which Report パラメータで値を指定しました
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 つではなく 2 つのグラフを選択したり、6 つすべてを選択したりできるようにすることですが、どのような選択を行っても、他のすべてのレポートは非表示のままにする必要があります。これを行うことができますか?
ありがとう
ウェイン