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

Editing Selection Bar

Can we change the way field names are being displayed in Selection bar after a selection is made in Qliksense?

For example I have a chart where we show only the last ten years of data. We restrict years by this expression:

if ([MyYear] > CurrentYear -11, [MyYear])

So when a selection is made in this chart, the selection bar on the top shows as follows

=if ([MyYear] >....

2014


Instead can I we have it display as follws


=MyYear

2014

1 Solution

Accepted Solutions
Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

You can try [Year] as dimension and Sum({<YEAR={">$(=[CurrentYear] -11)"}>} MyMeasure) as measure

Help users find answers! Don't forget to mark a solution that worked for you!

View solution in original post

5 Replies
rittermd
Master
Master

I think you just need to change the label for the measure.  You can't put an expression in the label.  But you can get rid of the code being displayed.

rvijayanth
Creator
Creator
Author

I just tried. Still the same code is displaying

Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

You can try [Year] as dimension and Sum({<YEAR={">$(=[CurrentYear] -11)"}>} MyMeasure) as measure

Help users find answers! Don't forget to mark a solution that worked for you!
rupamjyotidas
Specialist
Specialist

rvijayanth
Creator
Creator
Author

Thank you so much. This is what I wanted.