I was typing a question to ask why, when only -certain- data is pulled, would a BO report merge cells when exporting to excel. While doing that, I found the answer and thought I would post anyways…
My report needs to export to excel in a format where no merged cells should exist in the excel document.
I had a few column headers in my report set to “Autofit Width” = Yes. This was causing BO to force excel to merge the cells together and throw off my report. Changing this to No fixed the issue immediately.
I couldn’t find anything when I searched the boards that would address this, so maybe this will serve to help someone else that wanders along.
Thanks for the quick reply.
I haven’t defined widths for any column, but only two have been merged.
I have 2 date fields, the title of the one being merged was longer than the field width, so I extended the width so the whole tiltle could be seen.
It still gets merged, the other one deosn’t.
I just can’t see what the trigger is for merging a field.
The trigger for fields being merged is where they overlap.
Say you have 4 columns in a report and a free-standing cell that goes from the middle of column 1 to the middle of column 3.
In Excel you will get the following columns:
A - the first part of column 1
B - the second part of column 1 and the start of free standing cell
C - the whole of column 2 and the middle of fsc
D - the first part of column 3 and the end of fsc
E - the second part of column 3
F - the whole of column 4
Therefore columns 1 and 3 will look merged - you have to consider that BO is doing its best to align the columns - you need to do the same in the report and consider all start and finish points for both columns and free-standing cells.
The columns weren’t overlapping as far as I know; I just selected them and copied them into the report.
I thought it looked as though it does it where data fields are longer than the column width, but that doesn’t appear to be the case.
I keep resizing columns and different ones get merged. Still can’t work out why.
Given that it’s going over to Excel, expand your column widths and make sure that they are lined up. Move the report title up in to the page header so that it doesn’t export and merge cells for you.
Have you ever tried flipping the option under your Preferences? There are 2 Save as Excel options - data vs presentation, presentation is the default. If you go to the option for data processing, a lot of these merge issues go away (although the layout may suffer a little).
We had this problem when saving to Excel - our solution was to take the (major) offending report tabs and make sure all the columns were set to the same width.
Problem mostly solved - we couldn’t do anything about the tabs with the pretty tables but the massive source data tabs now don’t have 2 or 3 times the number of columns they should…
I’m not sure whether this is thanks to FP2 for XI3.1 SP6, but it looks like Webi has now changed to Not merging cells when exporting to Excel, and instead showing each and every column, no matter how small. It doesn’t appear that the preference change “priority for saving to MS Excel” makes a difference either.
This is particularly an issue for reports that have been around a long time (often converted from Deski) with a variety of free-floating cells, etc. Other than fixing the report (which of course is the best idea, except that there are hundreds of variations), has anyone found a way to get to a cleaner export in Excel?
Was facing the same issue of cells getting merged when exported to Excel.
The free standing cell not aligned with the table column-width was the reason.
Thank you Mark P…
we use a Java tool, which uses the built-in web-service functions to schedule the generation and creation of the report.
unfortunately the problem with the merged cells is present.
is there a possibility to use a API-function to save the report in a clean way?is there an Option to use the idea of “data vs presentation” in a function?