Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
triekong
Creator
Creator

Changing Field Name Dynamically without Script Load

i have a field in my dataset called 'sales.DryFruits' which i change in my script load to [Dry Fruits].

i have created a group in my chart called [Items] which is made up of 2 fields: [Dry Fruits] and [Flowers]

in my Chart Title i am changing the field dynamically by using the group 'Items', with the formula:

='Current Sales per ' & ' ' & GetCurrentField([Items])

Problem: in the label, i am trying to make it say [Fruits] instead of [Dry Fruit] without changing it in the Script Load. i want the field in the label to say [Fruit] but everywhere else in the report to say [Dry Fruits].

is there a formula or expression i can use to change this field dynamically in the Title bar? or maybe a workaround without using the script load?

thanks!

1 Solution

Accepted Solutions
sunny_talwar

May be this

='Current Sales per ' & ' ' & If(GetCurrentField([Items]) = 'Dry Fruits', 'Fruit', GetCurrentField([Items]))

View solution in original post

3 Replies
sunny_talwar

May be this

='Current Sales per ' & ' ' & If(GetCurrentField([Items]) = 'Dry Fruits', 'Fruit', GetCurrentField([Items]))

vishsaggi
Champion III
Champion III

May be this? Check attached.

triekong
Creator
Creator
Author

Thank you very much! it worked