0
我有一個新的要求,即在報告中使用日期範圍參數設計開始日期和結束日期。SSRS日期參數範圍
我用我的報告中查詢:
主要數據集:
SELECT Col1, Col2, StartDate, TargetDate, Col3
FROM Table
WHERE (StartDate BETWEEN @StartDateFrom AND @StartDateTo)
AND (TargetDate BETWEEN @TargetDateFrom AND @TargetDateTo)
數據集1:
SELECT DISTINCT Col1
FROM Table
數據集2:
SELECT DISTINCT Col2
FROM Table
WHERE (Col1IN (@Param1))
ORDER BY Col2
數據集3:
SELECT DISTINCT Col1, Col2, Col3
FROM Table
WHERE (Col1 IN (@Param1))
AND (Col2 IN (@Param2))
GROUP BY Col1, Col2, Col3
運行報告時出現錯誤:TargetDate參數缺失值。
有人可以幫忙嗎?
'Target_Date <> TargetDate'? – Devart