In my SSRS report layout, there is a parameter @GroupBy
with four values: A
, B
, C
and D
.
In the table, there are four columns: Column AA, Column BB, Column CC and Column DD. I want to make this four columns dynamic. For examples,
- when I select
B
in@GroupBy
, the table shall be rearranged to this seq: BB, AA, CC, DD. - when I select
C
in@GroupBy
, the table shall be rearranged to this seq: CC, DD, AA, BB. (special condition: CC must always be next to DD) - when I select
D
in@GroupBy
, the table shall be rearranged to this seq: DD, CC, AA, BB. (special condition: CC must always be next to DD) - when I select
A
in@GroupBy
, the table shall be rearranged to this seq: AA, BB, CC, DD. (back to the original seq)
Can someone help me?