SSRS条形图日期格式

时间:2015-12-11 13:37:13

标签: reporting-services charts ssrs-2008

我希望工作日有序,有人可以帮忙吗?

订单是Mon,Weds,Thur,Tue,Fri。

我已从排序中删除了A-Z

1 个答案:

答案 0 :(得分:1)

如果数据集中包含包含工作日的字段,则可以为数据集创建计算字段并设置此表达式:

=Switch(
Fields!weekday.Value = "Mon", 1,
Fields!weekday.Value = "Tue", 2,
Fields!weekday.Value = "Wed", 3,
Fields!weekday.Value = "Thu", 4,
Fields!weekday.Value = "Fri", 5,
Fields!weekday.Value = "Sat", 6,
Fields!weekday.Value = "Sun", 7
)

然后,您可以使用计算字段对升序A-Z或降序Z-A进行排序。

请告诉我这是否可以帮助您。