In SSRS 2008 R2 SP1 I am developing a report where a user can select a @Types and an @Areas. Both of these are multi-value parameters. I need to, in either SSRS or a SQL SP, concatenate every @Areas with every @Types. For example:
@Types: DP,DPC,PC
@Areas: M1,M2,M3
Result: 'DP_M1,DPC_M1,PC_M1,DP_M2,DPC_M2,PC_M2,DP_M3,DPC_M3,PC_M3'
I cannot for the life of me figure out how to accomplish this. I've tried Join(...) and Split(Join(...)) in SSRS but can't figure out how to go from there. I can't pass an array from SSRS to SQL, so no dice in that one. I can't figure out how to go from a comma-separated string to an array in SQL. I'm going crazy. Anyone have any brilliant ideas?