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

后端 未结 7 1233
醉话见心
醉话见心 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:34

    This may be a bit convoluted, but we had a similar problem and no means to change the SQL. What we did was create a calculated field in the dataset that returns a number for each column and sorted the group on that number.

    0 讨论(0)
  • 2021-02-05 05:42

    Go to Edit Group - Sorting - Change the direction to descending for the expression.

    0 讨论(0)
  • 2021-02-05 05:48

    This can also be done by adding a new column to the query for the sort order. Then right click the column group from the matrix and select group properties. On the left hand side select sorting. From here you can specify another column to sort by instead of the column header. No custom formula needed.

    0 讨论(0)
  • 2021-02-05 05:48

    I went into MATRIX --> PROPERTIES --> GROUPS. Then, I "moved" the GROUP I wanted it to sort by UP in the list. I went to PREVIEW, and it worked perfectly. It even kept my column order the same.

    0 讨论(0)
  • 2021-02-05 05:52

    I had a similar problem but did not find a solution using a matrix in time - so I used a table - and put the needed logic of the matrix in my SQL-statements. It's not the best thing to do but it works - it's fast enough and it don't takes that long to write.

    0 讨论(0)
  • 2021-02-05 05:53

    For distinct numeric order of a Tablix use following line of code in expression.

    =RunningValue(CountDistinct("YourTableName"),Count,"YourTableName")

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