Forum Discussion

M_nwadibia's avatar
M_nwadibia
Resolver III
3 years ago

Sorting in a Matrix Report

I am trying to sort the date field in descending order in this matrix report. If I sort in a table report everything is fine but when I go to matrix report It does not work. The Date field is of data type date. Any hep will be appreciated

 

 

5 Replies

    • M_nwadibia's avatar
      M_nwadibia
      Resolver III

      You can see the sorting not appropriately ordered.

       

  • Add an interactive sort button to a column header to enable a user to click the column header and sort the parent group rows in a table or matrix by the value displayed in that column. The order of child groups remains unchanged.

    To add an interactive sort button to a column header to sort groups
    In a table or matrix in report design view, right-click the text box in the column header for the group to which you want to add an interactive sort button, and then click Text Box Properties.

    Click Interactive Sorting.

    Select Enable interactive sorting on this text box.

    In Choose what to sort, click Groups.

    From the drop-down list, select the name of the group that you are sorting. For groups based on simple group expressions, the Sort by value is populated with group expression.

    Note

    For complex group expressions, manually set the Sort by expression to the same value as the group expression.

    Select OK.

    To verify the sort action, click Run to preview the report, and then click the interactive sort buttons.

     

    Greeting,

    Rachel Gomez

    • M_nwadibia's avatar
      M_nwadibia
      Resolver III

      I have tried these approaches but in some groups it sorts 100% while in some groups you still have 1,2,3 dates not sorted correctly

  • v-henryk-mstf's avatar
    v-henryk-mstf
    Community Support

    Hi M_nwadibia ,

     

    Based on your description, see if the following links to related documentation and similar solutions are helpful to you.

    Sort data in a data region in a paginated report - Microsoft Report Builder & Power BI Report Builder | Microsoft Learn

    reporting services - How to sort SSRS Matrix report by Grand total field - Stack Overflow


    If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


    Best Regards,
    Henry


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.