SSRS - Sort table based on column value

别等时光非礼了梦想. 提交于 2019-12-23 12:52:59

问题


I am trying to sort the following table:

hYear            hSale
------------------------------------
[year]    =Count(Fields!sale.Value)

The table only has one row group (year) and no column group. I'd like to:

-initially sort the table based on the calculated value; is it possible?

-add interactive sort to calculated column based on the value. I assume I should sort 'Detail rows', but what will be the sort expression?


回答1:


Yes on both:

  1. Click on the table or grid to make little gray boxes appear. Click in the upper left corner and select properties. Select Sorting. Hit the 'Fx' button. Put in your expression you have above.

  2. For dynamic sorting select the cell in a table (not the header) and click 'Text Box Properties. Select 'Interactive Sorting' and select 'Enable interactive sorting on this text box'. Put in your dataset column or else a custom expression like what you did above.



来源:https://stackoverflow.com/questions/17370363/ssrs-sort-table-based-on-column-value

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!