Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need Help

Hi All,

I have one query that I have one excel sheet USA

OrderIDLineNOFormulaIDCountry
1200AXY76UNITED STATE A
2300BHC98U.S.A
3500MM55U.STATE.A
4600OI11AMERICA
5400FR56US

so I want in all country name as USA

Thanks and Regards,

PM

7 Replies
Anonymous
Not applicable
Author

Hello

Take a look on the attached file.

Regards,

Gabriel

Not applicable
Author

if(match(Country,'UNITED STATE A','U.S.A','U.STATE.A','AMERICA','US'),'USA',Country) as Country,

ali_hijazi
Partner - Master II
Partner - Master II

you can use a mapping table and ApplyMap or in the script use in the script if(wildmatch(country,'united states','u.s.a.',...)>0,'USA',country)

I can walk on water when it freezes
Not applicable
Author

Hi,

Maintain one more excel which will contain the countryname ex :

CountryCountryName
UNITED STATE AUSA
U.S.AUSA
U.STATE.AUSA
AMERICAUSA
USUSA

then use below script:

tempcountry:

LOAD

     OrderID,

     LineNO,

     FormulaID,

     Country

FROM

[..\..\Calendar.xlsx]

(ooxml, embedded labels, table is Sheet2);

maptable:

MAPPING LOAD

     Country,

     CountryName

FROM

[..\..\Calendar.xlsx]

(ooxml, embedded labels, table is Sheet3);

Country:

LOAD

     OrderID,

     LineNO,

     FormulaID,

     ApplyMap('maptable',Country) as countryname

     Resident tempcountry;

    

     DROP Table tempcountry;

hope it helps

Regards,

Pooja

ramasaisaksoft

Hi Prashat,

            use this calculated dimension(Expression)

=if(match(Country,'UNITEDSTATEOFAMERICA','U.S.A','AMERICA','U.STATE.A','US'),'USA',Country)

Here country is u r field name

'UNITEDSTATEOFAMERICA','U.S.A','AMERICA','U.STATE.A','US  these are u r data in country filed.

i hope u understand  otherwise please check the files.

antoniotiman
Master III
Master III

Hi PM,

in Your Table You have only Field Country like U.S.A., America,.. or other Country ?

Not applicable
Author

Thanks to all of you .

I will implement in my script and let you know......