SYMPTOM:
The leading and trailing white spaces are not trimmed when exporting to Excel (xlsx) with Plain Text in Strategy Web 9.4.1.
STEPS TO REPRODUCE:
1. Create two tables and populate them with sample data containing trailing and leading white spaces as follows:
create table T1 ( attr_ID_T1 int, attr_desc_T1 varchar(4), ) create table T2 ( attr_ID_T2 int, attr_desc_T2 varchar(4), ) ------------------------------ INSERT INTO T1 VALUES(1, 'ABC ') -- single trailing space after 'ABC' INSERT INTO T2 VALUES(1, ' ABC') -- single leading space before 'ABC'

3. Go to Strategy Web and enable the “Trim leading and trailing white space for warehouse element data” option, which should trim leading and trailing spaces as the name implies.

4. Export the report to Excel with Plain Text(2007 or later). The leading and trailing white spaces are not trimmed.

CAUSE:
This is a known issue in Strategy Web 9.4.1.
ACTION:
This issue has been addressed in Strategy 10.0. Upgrade to this or later versions to take advantage of the fix.
WORKAROUND:
[tableCol] -----> RTRIM(LTRIM([tableCol]))