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: 
manoranjan_d
Specialist
Specialist

dynamic selection

i want to give the expression  label name with dynamic selection of the week

example if i select the week1 in the list box 1, since list box 1 has been defined with state1

then the expression label has to show "week1 total amt"

but this is not working

=Only({[State1]}if(GetSelectedCount(Week_Num1)>=1,Week_Num1,'Week')) & 'total amt'


its not showing


its showing only "week total amt" but as  per the requirement is shd show


"week1 total amt"


bcoz i slected week1 from list box 1 assigned with state1

Labels (1)
4 Replies
Anil_Babu_Samineni
MVP
MVP

What if you use some thing like below

=GetFieldSelection(Week_Num1) & 'total amt'

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
manoranjan_d
Specialist
Specialist
Author

week_num1 field has been assigned list box with alternate state

manoranjan_d
Specialist
Specialist
Author

in this expression  how to give the state1

effinty2112
Master
Master

Hi,

Try this:

=Only({[State 1]} if(GetSelectedCount(Week_Num1, 'include','State 1')  =1,Text(Week_Num1),'Week')) & 'total amt'

cheers

Andrew