SSRS Column Grouping with specific order

Posted by AmiT on Stack Overflow See other posts from Stack Overflow or by AmiT
Published on 2010-05-27T10:02:20Z Indexed on 2010/05/27 10:21 UTC
Read the original article Hit count: 233

Filed under:
|

Hi Experts,

Is it possible to change order of records/groups in a result-set from a query using Group By?

=>I have a query:

SELECT Category, Subcategory, ProductName, CreatedDate, Sales From TableCategory tc INNER JOIN TableSubCategory ts ON tc.col1 = ts.col2 INNER JOIN TableProductName tp ON ts.col2 = tp.col3

Group By Category, SubCategory, ProductName, CreatedDate, Sales

=> Now, I am creating a ssrs report where Category is Primary row group, then SubCategory is its child row group. Then ProductName is a Primary Column Group.

alt text

It works perfect, But it shows the ProductNames in alphabatic order. I want it to show the ProductNames in custom order(defined by me).Like,

ProductNo5 in 3rd column, ProductNo8 in 4th column, ProductNo1 in 5th column ... and so on!

© Stack Overflow or respective owner

Related posts about ssrs-2008

Related posts about ssrs-grouping