How to specify an order for the columns in a matrix?

后端 未结 7 1234
醉话见心
醉话见心 2021-02-05 04:55

I\'m working on a SQL Reporting Services report (in VS.Net 2005) which displays a count of different data in a matrix. The columns have a count on the amount of customers in a c

相关标签:
7条回答
  • 2021-02-05 05:55

    We do a lot of SSRS Reports and this was always an issue with mdx. Here is one way we do it:

    Set Sorting in the Grouping and Sorting Properties to sort by this expression:

    =iif(Fields!DataSetField.Value = "ColumnName", "zzz", Fields!DataSetField.Value)
    

    Where "zzz" could be a number or whatever you need it to be to help the sort and then select Direction as either Ascending or Descending base on this expression.

    0 讨论(0)
提交回复
热议问题