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

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

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
MVP
MVP

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
Partner - Champion III
Partner - Champion III

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
MVP
MVP

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.