concatenate

  • I am trying to concatenate Prodyear and ProdMonth in SSRS (which are basically both integers in table)

    So, when I execute it sums up year and month instead of concatenating.

    Is there a expression i can use?

  • Your expression should use the & symbol instead of the + symbol, which is a SQL concatenation symbol but not for SSRS expressions.

  • Wow, That surely helped.

    But my data should start from June,2013 going backword. ( Thats how the Query is written and executes in SMS).

    In the matrix it starts with 012013

    Any Idea how I could fix that?

  • Even though the default option is to sort a grouping by the same expression as the grouping and the displayed value, that is not necessarily what you want, and it is definitely not what you want here.

    For the group value and the displayed value, add a space to make it readable: = Fields!ProdMonth.Value & " " & Fields!ProdYear.Value

    For the sort value, first sort by Fields.ProdYear.Value (descending) and then add a second sort by Fields!ProdMonth.Value (also descending).

    Change the rule in the group properties of the column group.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply