Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All
My excel raw data price list is enter as $ 95.70 , hence when i load into QV , it display as $ 95.8
I want to remove those extra space.
I try below , all fail :-
TRIM('SGD '&[LIST_PRICE]) as LISTPRICE,
round(LIST_PRICE,0.01) as LIST_PRICE,
num(TRIM([LIST_PRICE])) as LIST_PRICE_,
Paul
On my computer this code will make numeric out of your excel.
MITSUBISHI:
LOAD [Item No.],
'Inverter' as [Product Group],
'MITSUBISHI' AS BRAND_P,
[Part No.] as [PART_NO_],
[Distributor List Price in SGD (S$)],
[Distributor Discount] as [LIST_PRICE],
[Distributor Discount] as [LIST_PRICE_],
TRIM([Distributor Discount]) as [MNett Price],
Remarks ,
num( [Distributor Discount]) as LISTPRICE
FROM [INVERTER_LIST PRICE 2009 Q1 valid till March 2011.xls]
(biff, embedded labels, header is 2 lines, table is Sheet1$);
Hi
Try
KeepChar([LIST_PRICE],'1234567890.') as [LIST_PRICE]
BR
Ariel
Try PurgeChar(LIST_PRICE, ' ') as [List Price]
Hi All
Both recommendation not able to work , any more help will be appreciated.
Paul
On my computer this code will make numeric out of your excel.
MITSUBISHI:
LOAD [Item No.],
'Inverter' as [Product Group],
'MITSUBISHI' AS BRAND_P,
[Part No.] as [PART_NO_],
[Distributor List Price in SGD (S$)],
[Distributor Discount] as [LIST_PRICE],
[Distributor Discount] as [LIST_PRICE_],
TRIM([Distributor Discount]) as [MNett Price],
Remarks ,
num( [Distributor Discount]) as LISTPRICE
FROM [INVERTER_LIST PRICE 2009 Q1 valid till March 2011.xls]
(biff, embedded labels, header is 2 lines, table is Sheet1$);
I opened your QVW and PurgeChar([Distributor Discount], ' ') as [LIST_PRICE] worked.
I have attached it.
Hi Vegar
Thank you it work fine.
Paul
Hi Jpa
My mistake , i add your recommended code at partial reload section. I think correct approach is to remove the space when load script and not at partial reload session.
Thank you
Paul
Hi Ariel
I refer back to your post again , just like to info your propose script is very powerful.
Paul
mid([Distributor Discount],7) as MIDPRICE
works fine as well