I want to create a report in SSRS. This report will have max 30 lines. Each line represents a different product. Each product line has a different color. So for product A the line is red. In the columns are the revenues for different years. For example the first column is the year 2014. The last column will show a total for the product. Now each column (except the product name and the sum) should be sorted descending and each line muss hold the color of the product. In the following is a picture of the example data.
The formatted Report should look like this:
So here is the example with some sample data to show the sorting:
I hope the problem is understandable.
First, how can I achieve the colorcoding? My first guess is to set the color with for example a code and use IIF(Fields!Product.Value = 'product A', "Yellow", "White"). This seems to work, but I don't think it is practical to hard code the formatting for each product into the report. Is there an elegant and dynamic way for the formatting?
Second, how can I sort each column differently and save the relation to the product? Do I have to create a tablix for each column and hide the product name?




