SSRS report Excel export with custom sorting

Zolotoy 226 Reputation points
2023-01-04T20:33:45.58+00:00

I have a column in my report that shows different icons. I have a sorting logic for that column. I want to add a custom soring function to sort by. My first question: is it possible to provide a custom function to sort a column by? We use similar technique in web screens. My second question: the dort will not go ver the Excel when I export report, correct?

Thanks

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,061 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Taylor 60,161 Reputation points
    2023-01-04T21:50:50.313+00:00

    You can use any SSRS expression you want to control sorting. In the sort field you can click the Fx button to go into the expression editor and use any SSRS expression to control formatting up to and including your own custom functions that you've added to your report.

    When you export to another format then the order in which the data appears in the report is what would get exported. The report is rendered (which sets ordering) and then exported. Having said that I'm not sure whether interactive sorting would export correctly because the report is exported, not the current UI display AFAIK but honestly I've never had to export a report with interactive sorting enabled.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.