Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

Report Builder 3.0 - Merging cells vertically in a table

$
0
0
I am trying to create a table with some cells merged vertically. The table is static, and is therefore not expected to grow with the incoming data. I have set the dataset for the table to be a dummy dataset that just creates one row with no content (select ''). I am going to get data into one cell in each of the rows by using separate datasets per row doing individual calls to the database, therefore my expression for each would be =First(Fields!MyField.Value, "DataSet1"), or "DataSet2", etc. The rest of the cells in each row (to the left of the data value) will each contain static, known values, as row headers. For some of the row headers, say for rows 2 and 3, I am needing to merge the first cells vertically and the third cells vertically. The second and fourth columns will not be merged. Although this is not a standard way for Report Builder 3.0 to be used, this is definitely a standard form for my industry, and cannot really be changed. And I have been tasked with replicating this in RB3.So, as a very simple example, I might have four rows with four columns looking like this:[code="other"]Exercise1 10 miles 3 secs <Data from DataSet1>Exercise2 20 miles 5 secs <Data from DataSet2>Exercise2 30 miles 5 secs <Data from DataSet3>Exercise3 40 miles 4 secs <Data from DataSet4>[/code]So Exercise1 will not be merged, the first and third cells of each row for Exercise2 will be merged, and Exercise3 will not be merged. It should look like this, in table layout:[code="other"]Exercise1 10 miles 3 secs <Data from DataSet1>Exercise2 20 miles 5 secs <Data from DataSet2> 30 miles <Data from DataSet3>Exercise3 40 miles 4 secs <Data from DataSet4>[/code]Does anyone have any advice on how to merge these cells vertically. I have tried this table a number of ways, and layout has not been good. I looked at the Microsoft doc page ([url=http://msdn.microsoft.com/en-us/library/dd239384(v=sql.110).aspx]http://msdn.microsoft.com/en-us/library/dd239384(v=sql.110).aspx[/url]), and under the section labeled "Controlling the Appearance of Data", there's a bullet point labeled Merging Cells that explicitly states:"Multiple contiguous cells within a table can be combined into a single cell. This is known as a column span or a cell merge. Cells can only be combined horizontally or vertically."So supposedly I can do the vertical merge, but I haven't figured out how.I have tried selecting cells vertically, even when they belong to rows that are of the same group, and when I right-click the Merge Cells option doesn't show up, as it does when I select cells horizontally and do the same thing. I have looked further into the online documentation but haven't yet found a place where they explain what I'm doing wrong.Any help on this would be highly appreciated.

Viewing all articles
Browse latest Browse all 1341

Trending Articles