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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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

Labels (1)
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!