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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
manoranjan_d
Specialist
Specialist

chart title issue

Hi my chart title is not picking as per the selection in the list box

below is the expression i used

=if(GetFieldSelections(dept),'Total Incoming amount For ' & dept, 'Total Incoming amount' )

1 Solution

Accepted Solutions
avinashelite

Try like this

=if(Len(Getselectedcount(dept))>0,'Total Incoming amount For ' & GetFieldSelections(dept,','), 'Total Incoming amount' )

View solution in original post

10 Replies
maxgro
MVP
MVP

=if(Len(GetFieldSelections(dept)),'Total Incoming amount For ' & concat(distinct dept, ','), 'Total Incoming amount' )

Anil_Babu_Samineni

Did you put:

= dept

on your title?

Hope it helps,

OR post your example

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
Anonymous
Not applicable

Hi

try this

=if(GetFieldSelections(dept),'Total Incoming amount For : $(=Concat(Distinct dept,' ,')',

          'Total Incoming amount' )

Or

=if(Aggr(sum(1),dept)>0,'Total Incoming amount For : $(=Concat(Distinct dept,' ,')',

          'Total Incoming amount' )

avinashelite

Try like this

=if(Len(Getselectedcount(dept))>0,'Total Incoming amount For ' & GetFieldSelections(dept,','), 'Total Incoming amount' )

manoranjan_d
Specialist
Specialist
Author

Hi Grossi

your expression is working fine but if i make multiple selections then its not working, how to do that

avinashelite

Did you tried this

=if(Len(Getselectedcount(dept))>0,'Total Incoming amount For ' & GetFieldSelections(dept,','), 'Total Incoming amount' )

trdandamudi
Master II
Master II

Are you sure.. Massimo solution is working and if you select multiple then it is showing the multiple selections. When you are selecting multiple what is your output ?

Anonymous
Not applicable

Hi

Did you try my solution ?

manoranjan_d
Specialist
Specialist
Author

thanks