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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ak00428233
Contributor III
Contributor III

Expression to rename two values in a list box

Hi All,

I an new to qlikview can you please help me in renaming two values in a list box.

Jobs:

LOAD * INLINE [

Professions,

Doctor

Teacher

Engineer

Professor

IndianAdministrativeService

IndianForeignService

];

Required:-

I want to rename IndianAdministrativeService and IndianForeignService to be renamed as IAS and IFS in the listbox using the expression in listbox.

Can you please guide me.

Thanks in advance

Regards,

Anu

1 Solution

Accepted Solutions
Anonymous
Not applicable

=if(Professions='IndianAdministrativeService','IAS',
if(Professions='IndianForeignService','IFS',Professions))

View solution in original post

8 Replies
Anonymous
Not applicable

=if(Professions='IndianAdministrativeService','IAS',
if(Professions='IndianForeignService','IFS',Professions))

Anil_Babu_Samineni

This?

If(Pick(Match(Professions, 'IndianAdministrativeService', 'IndianForeignService'), 'IAS','IFS'), Professionals)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
ak00428233
Contributor III
Contributor III
Author

Thank you so much John

ak00428233
Contributor III
Contributor III
Author

I dont know why but it is not working anil.....

Anil_Babu_Samineni

Try this Perhaps

Pick(Match(Professions, 'IndianAdministrativeService', 'IndianForeignService'), 'IAS','IFS', Professions)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
ak00428233
Contributor III
Contributor III
Author

Hi Anil,

Thank you
It is working but rest of the values are not visible by using this expression.

expression.PNG

Anil_Babu_Samineni

May be i need to test that, Anyway you got work around.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anil_Babu_Samineni

Test done, This should work

=Pick(Match(Professions, 'IndianAdministrativeService', 'IndianForeignService')+1, Professions, 'IAS','IFS')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful