2017-10-04 19 views

答えて

0

これは、 フィーチャー バグ COUNT()集計を使用する場合に発生する既知の問題です。

SELECT Incident_Logged 
     ,Location_Name 
     ,Incident_Type 
     ,Body_Part_Name 
     ,1 Incident_Sum 
FROM Incident 
INNER JOIN Location ON Location_ID = Incident_Location_ID 
INNER JOIN Body_Part ON Body_Part_ID = Incident_Body_Part_ID 
WHERE Incident_Logged BETWEEN @StartDate and @EndDate 
AND Incident_Location_ID IN (@Location) 
ORDER BY Incident_Logged DESC 

あなたがこれを行うと、新しい列の合計に値を変更します。私は、クエリの1の値を持つ擬似列を追加することによってこの問題を解決しました。一度それを行うと、あなたの色が整列する必要があります。

出典:https://social.msdn.microsoft.com/Forums/sqlserver/en-US/0dc8aad4-b846-476d-a429-f8fc2312c585/ssrs-2008-chart-legend-colours-not-matching-series-colour?forum=sqlreportingservices - 「softworks phil smith」の答えを探します。