Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
dolly777
Contributor III
Contributor III

Rename a field in my dashboard

Hi All,

Rename a field every organization code VGI need to be changed in FI and every organization code VGF to FF.

pls find attached screen shotsreplace1.PNGreplace.PNG

8 Replies
avinashelite

try like this

replace(Field_name,'VGF-','FF-') as Field_name

Anonymous
Not applicable

Try

If 2 fields with separate replacements:

replace([YourFieldName],'VGI','FI') as YourFieldName

replace([YourFieldName2],'VGF','FF') as YourFieldName2

Or if its one field with 2 replacements:

replace(replace([YourFieldName],'VGI','FI'),'VGF','FF') as YourFieldName

hope this helps!

surendraj
Specialist
Specialist

Hi,

your requirement was not clear.but what my assumption is you need to change the VGI-->FI; VGF-->FF

If my assumption is correct.try this.

Replace('Team(ps)','VG','F')


If I am not corerct please clarify me.


--Surendra

dolly777
Contributor III
Contributor III
Author

Hi,

I try his function but fields not changing.

,IF(LEFT(measures,3)='vgi','FI',IF(LEFT(measures,4)='vgfs','FF','VG')) AS department_key

     ,IF(LEFT(measures,3)='vgi','fi',IF(LEFT(measures,4)='vgfs','ff','vg')) AS department

     ,REPLACE(REPLACE(measures,'fi',''),'ff','') AS measures

     ,values

avinashelite

Qlikview is case sensitive ..check it once

IF(LEFT(measures,3)='VGI','FI',IF(LEFT(measures,4)='VGFS','FF','VG')) AS department_key

     ,IF(LEFT(measures,3)='VGI','FI',IF(LEFT(measures,4)='VGFS','FF,'vg')) AS department

     ,REPLACE(REPLACE(measures,'fi',''),'ff','') AS measures

dolly777
Contributor III
Contributor III
Author

Hi Avinash,

i try same function fileds not changing

avinashelite

share the sample app with the data will check

mayankraoka
Specialist
Specialist

Hi Nirmala,

Please check below link this may solves your issue.

Using MapSubstring() to edit strings | Qlikview Cookbook

Regards,

Mayank