我在我的SSRS报告中使用了2个数据集。一个用于图表而另一个用于表格。但是在部署之后我一次只能看到一个结果。这意味着一旦表加载图表不加载或如果图表加载表数据不加载。请提出一个好的解决方案。谢谢。请参考以下2个数字。 1.Only chart Loading Here
SELECT distinct STDEV(ORDER_RESULT) AS [Standard Deviation],
(select top 1 MIN from SIVA_ControlLimit
where VALIDATE_DATE in (@yr) and ITEM_CODE in (@ITEM_CODE) and TEST_TYPE in (@TEST_TYPE) and BATCH_NO in (@BATCH_NO) and TEST_CASE in (@TEST_CASE)
order by BATCH_NO,STANDARDVALUE) 'LSL',
(select top 1 MAX from SIVA_ControlLimit
where VALIDATE_DATE in (@yr) and ITEM_CODE in (@ITEM_CODE) and TEST_TYPE in (@TEST_TYPE) and BATCH_NO in (@BATCH_NO) and TEST_CASE in (@TEST_CASE)
order by BATCH_NO,STANDARDVALUE) 'USL',(AVG(ORDER_RESULT)-STDEV(ORDER_RESULT)*3) AS LCL,
AVG(ORDER_RESULT) AS Mean,(AVG(ORDER_RESULT)+STDEV(ORDER_RESULT)*3) AS UCL,
Min(ORDER_RESULT) AS MinOrderResult ,Max(ORDER_RESULT) AS MaxOrderResult
FROM SIVA_ControlLimit where
VALIDATE_DATE in (@yr) and ITEM_CODE in (@ITEM_CODE) and TEST_TYPE in (@TEST_TYPE) and BATCH_NO in (@BATCH_NO) and TEST_CASE in (@TEST_CASE)
SELECT distinct ORDER_RESULT,BATCH_NO,STDEV(ORDER_RESULT) OVER () AS [Standard Deviation],(select top 1 MIN from SIVA_ControlLimit where VALIDATE_DATE in (@yr) and ITEM_CODE in (@ITEM_CODE) and
TEST_TYPE in (@TEST_TYPE) and BATCH_NO in (@BATCH_NO) and TEST_CASE in (@TEST_CASE)
order by BATCH_NO,STANDARDVALUE) 'LSL',(select top 1 MAX from SIVA_ControlLimit
where VALIDATE_DATE in (@yr) and ITEM_CODE in (@ITEM_CODE) and TEST_TYPE in (@TEST_TYPE) and BATCH_NO in (@BATCH_NO) and TEST_CASE in (@TEST_CASE) order by BATCH_NO,STANDARDVALUE) 'USL',
(AVG(ORDER_RESULT) OVER () - STDEV(ORDER_RESULT) OVER ()*3) AS LCL,
AVG(ORDER_RESULT) OVER () AS [CL(AVG)],(AVG(ORDER_RESULT) OVER () + STDEV(ORDER_RESULT) OVER () *3) AS UCL,
Min(ORDER_RESULT) OVER () AS MinOrderResult ,Max(ORDER_RESULT) OVER () AS MaxOrderResult,ROW_NUMBER() OVER (ORDER BY BATCH_NO,ORDER_RESULT) AS Row
FROM SIVA_ControlLimit where VALIDATE_DATE in (@yr) and ITEM_CODE in (@ITEM_CODE) and TEST_TYPE in (@TEST_TYPE) and BATCH_NO in (@BATCH_NO) and TEST_CASE in (@TEST_CASE) order by BATCH_NO`