reporting services - Interactive sort on a text field having decimal numbers -
i have following text field in ssrs report:
version 2.0.0.0 1.0.0.0 1.2.0.0 2.1.8.8 2.2.32.7 1.4.11.0
i want sort field interactively. how do that?
once sorted ascending, report should show
version 1.0.0.0 1.2.0.0 1.4.11.0 2.0.0.0 2.1.8.8 2.2.32.7
thank in advance
to use interactive sorting, right-click on column header , view text box properties.
click on interactive sorting tab , check enable interactive sorting box.
normally use detail row can specify use group instead.
put field or expression want sort in sort expression.
you need same additional columns wish sort.
as data, field have sorted text , not number. works data have listed may cause issues when have versions in double digits. sorted list order list like:
- 1.15
- 10.5
- 2.33
- 3.2
- 9.1
if potential issue, need figure out way deal it. use expression adds zeroes first number deal this:
=right("000" & left(fields!version.value, instr(fields!version.value) - 1) & mid(fields!version.value, instr(fields!version.value) + 1, len(fields!version.value))
for more info: interactive sorting in ssrs on values - matrix report
Comments
Post a Comment