Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Function accents

I need a function that will take the field in a string of QVD and remove accents and leave the letters in uppercase.
Can anyone help?

Caccents = "áéíóúàèìòùâêîôûäëïöüãõñçÁÉÍÓÚÀÈÌÒÙÂÊÎÔÛÄËÏÖÜÃÕÑÇ@#$%*&()/"%\ºª´´^~"
Saccents = "aeiouaeiouaeiouaeiouaoncAEIOUAEIOUAEIOUAEIOUAONC                  "


Thank's

Patricia

2 Replies
Not applicable
Author

Hi Patricia.  

ChrMap:

MAPPING

LOAD * INLINE [

    From,           To

    á,                     a

    â,                     a

    ã,                    a

    é,                     e

    ê,                     e

    í,                     i

    ó,                     o

    ô,                     o

    õ,                    o

    ú,                     u

    Á,                     A

    Â,                     A

    Ã,                    A

    É,                     E

    Ê,                     E

    Í,                     I

    Ó,                     O

    Ô,                     O

    Õ,                    O

    Ú,                     U

    ç,                    c

    Ç,                    c

];

TableTest:

LOAD

          Name,

          mapsubstring('ChrMap', Name)                         as New_Name,

          upper(mapsubstring('ChrMap', Name))           as New_Name2

FROM Name.xls (biff, embedded labels, table is Name$);

Alessandro Furtado

tiagopost
Contributor III
Contributor III

Very Good!