Focal Point
Across value does not comply to CDN setting in excel

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1817062136

June 04, 2013, 08:55 AM
Dave
Across value does not comply to CDN setting in excel
Hi all...

Please see the following sample:
SET CDN = ON

DEFINE FILE CAR
 DECIMAL/D12.2 = SALES / SEATS;
END

TABLE FILE CAR
SUM DECIMAL
BY  COUNTRY
ACROSS DECIMAL
ON TABLE PCHOLD FORMAT EXL2K
END


For me, being in The Netherlands, we -want- . als thousands seperator and , as decimal separator.
So.. SET CDN = ON

That works fine for the 'DECIMAL' in the SUM but -not- for the value of the ACROSS.

By the way, it does work fine in HTML.


Is this is a bug?
Is there a work-around?


Greets, Dave


_____________________
WF: 8.0.0.9 > going 8.2.0.5
June 04, 2013, 10:59 AM
Francis Mariani
That "by the way" is the key - if it works in one format, it should work in all formats. It works for HTML and PDF, so I'd open a case with IBI.

Here's an example of it not working for Excel - for both BY or ACROSS (in v7.7.03):

SET CDN = ON

DEFINE FILE CAR
 DECIMAL/D12.2 = SALES / SEATS;
END

TABLE FILE CAR
SUM DECIMAL
BY COUNTRY

ON TABLE PCHOLD FORMAT EXL2K OPEN
END

TABLE FILE CAR
SUM DECIMAL
ACROSS COUNTRY

ON TABLE PCHOLD FORMAT EXL2K CLOSE
END



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 05, 2013, 03:05 AM
GamP
I think this decimal stuff for excel has nothing to do with webfocus.
If you just hold the result of the above requests as an exl2k file (extension .xht, but readable as a text file) then there is no difference at all for SET CDN-ON or OFF. The resulting files are identical. So, imho, the way it is presented is 100% an excel issue.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
June 05, 2013, 04:34 AM
Dave
GamP,

Yeah, seem like that. But in that case it's really weird that the 'facts' are displayed correctly.

Maybe because WF adds quotes to the BY and ACROSS values, as if it was 'text'? And not so for facts?

Not unlike how dates are handled when with excel-output format ( see : SET EXL2KTXTDATE ).

?


_____________________
WF: 8.0.0.9 > going 8.2.0.5
June 05, 2013, 10:41 AM
Francis Mariani
Is your Excel set up for CDN?

If I override my Excel Settings "Use system separators" settings to use CDN, then no matter what setting WebFOCUS has, the decimal columns are displayed as required.




Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 12, 2013, 03:13 AM
Dave
Francis,

Yes it is.
( I've checked it, after struggling to find where the **** this setting was hidden in the newly installed version of... )

And even if it wasn't... ...how did SUM fields end up in the correct format and the ACROSS value didn't ?

Still unresolved.


_____________________
WF: 8.0.0.9 > going 8.2.0.5