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: 
BenjaminCoe1440
Contributor III
Contributor III

Use a variable to name a title

BenjaminCoe1440_1-1675264663916.png

BenjaminCoe1440_2-1675264780593.png

How do I get the title of the KPI highlighted in Orange to change when I select a different filter?

For instance, if "Air compressor" is selected then "m^3" will be the title of the KPI.

(NB: 'Fuel' filter is always only one selected value)

 

 

 

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

use MaxString() as below

 

vTitle  = MaxString(Unit)

 

Then in Label use   = '$(vTitle)'

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

2 Replies
vinieme12
Champion III
Champion III

use MaxString() as below

 

vTitle  = MaxString(Unit)

 

Then in Label use   = '$(vTitle)'

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
sidhiq91
Specialist II
Specialist II

@BenjaminCoe1440  A small addition to what @vinieme12  just mentioned above.

You can use something like below expression too:

= if(IsNull(GetFieldSelections(Fuel)), 'Total Value',$(Vtitle))