Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

GetSelectedField Function

Hi Everbody

I have a question about GetSelectedField and GetSelectedCount funtions , I m using an expression like this ;

if(GetSelectedCount(Ay)>0,'Report'&GetFieldSelections(Ay)&' Months')&

if(GetSelectedCount(Gün)>0,', '&GetFieldSelections(Gün)&' of days')

But as in the attach , ı cant sort days , and ı want to see all of day. Exc(1,2,3,4,5,6,7,8,9,10,11..)

Can anyone help me ?

Thanks

1 Solution

Accepted Solutions
sunny_talwar

Try this:

if(GetSelectedCount(Ay)>0,'Report'&GetFieldSelections(Ay, ',', 100)&' Months')&

if(GetSelectedCount(Gün)>0,', '&GetFieldSelections(Gün, ',', 100)&' of days')

View solution in original post

7 Replies
sunny_talwar

Try this:

if(GetSelectedCount(Ay)>0,'Report'&GetFieldSelections(Ay, ',', 100)&' Months')&

if(GetSelectedCount(Gün)>0,', '&GetFieldSelections(Gün, ',', 100)&' of days')

Anonymous
Not applicable
Author

Maybe try the concat() function and exploit its sort_weight argument.

See concat() help entry :

https://help.qlik.com/en-US/sense/3.2/Subsystems/Hub/Content/ChartFunctions/StringAggregationFunctio...

Anonymous
Not applicable
Author

Hi Muhammed,

Try

getfieldselections ( YourField, YourDelimiter , MaxValues )


And put in MaxValues a higher number, so that all value you select can be showed.



Regards,

Sílvia

Not applicable
Author

Hi Sunny

Thanks for reply , its worked but whats can ı do about sorting days ?

sunny_talwar

I guess in that case go with bill.markham‌'s suggestion of using Concat() instead of GetFieldSelections

Not applicable
Author

Thanks for reply;

What can ı do about sorting days , when I selected days in order of 4,5,6,7,8 , output view is 6,7,4,5,8.

Not applicable
Author

Apply the sorting calculation   in sort tab  using match function