1

系列チャート式で次の datediff 式を使用する

=Avg(IIF((Not IsNothing(Fields!resDate.Value)) OR (Not IsNothing(Fields! createdDate.Value)) ,abs(DateDiff(DateInterval.Day,cdate(FormatDateTime(Cdate(Fields!createdDate.Value)), DateFormat.ShortDate)),cdate(FormatDateTime(Cdate(Fields!resDate.Value),DateFormat.ShortDate)))),Nothing))

Y軸で取られた平均日数を返しますSQLからは正しい日数を返しますが、日付のサイズは非常に大きくなります

4

0 に答える 0