Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have a excel file where I am pulling numbers.The number format are R$ 222.00, R$ 222.998 etc
I am unable to do sum, but I can do count.
How to format the column in the backend so I can actually do the sum.
Thanks
Try this
LOAD
Money#(Amount,'R$ #.###,###', ',', '.') as Amount
FROM
[Test.xls]
(biff, embedded labels, table is Sheet1$);
May be this
Money#(FieldName, 'R$ #,###.###') as FieldName
or maybe this:
num#(mid(YourField,3)) as number
Hi ,
Thanks for reply.
I tried it but still not working .
PFA
Thanks
I don't see anything attached... but seems to be working for me
I see attached now
Try this
LOAD
Money#(Amount,'R$ #.###,###', ',', '.') as Amount
FROM
[Test.xls]
(biff, embedded labels, table is Sheet1$);
Or try this
SET MoneyThousandSep='.';
SET MoneyDecimalSep=',';
SET MoneyFormat='R$#,##0.00;(R$#,##0.00)';
LOAD Amount
FROM
[Test.xls]
(biff, embedded labels, table is Sheet1$);
Thanks