Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
shree909
Partner - Specialist II
Partner - Specialist II

help regarding selections

Hi iam attaching a file

which conists for months from Jan to dec

this selection i want to implement at the label level

when i select  jan, apr manually it shows correct(Jan-Mar)

but when i split the months into quarters it doesnt show properly.it shows as (ja-ar)

please find the file as attached

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Try:

=if((GetSelectedCount(Month)>1)and(GetSelectedCount(Month)<12),

(left(replace(GetFieldSelections(Month,'',12),'(',''),3)&'-'&right(replace(GetFieldSelections(Month,'',12),')',''),3)),

GetFieldSelections(Month))


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
shree909
Partner - Specialist II
Partner - Specialist II
Author

hi please find the attachment

MayilVahanan

HI

PFA

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
shree909
Partner - Specialist II
Partner - Specialist II
Author

it works fine for q1  and q2 ,

but when i select manually jan, apr ,jun it has show as

jan-apr but it shows as differnt .

can u rectify it

Gysbert_Wassenaar

Try:

=if((GetSelectedCount(Month)>1)and(GetSelectedCount(Month)<12),

(left(replace(GetFieldSelections(Month,'',12),'(',''),3)&'-'&right(replace(GetFieldSelections(Month,'',12),')',''),3)),

GetFieldSelections(Month))


talk is cheap, supply exceeds demand
MayilVahanan

Hi

PFA

Let me know, this is your requirement

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.