Re: How to get all the filtered item name into Text & image at Qlik Sense?
The getfieldselections function is returning a list of the values selected from the myState field, using # as the value separator and I've limited it to return 53 values. This is as per the syntax in the help (help.qlik.com).
The subfield function is then effectively breaking the string returned by getfieldselections into separate strings or fields, using the # as the separator. The -1 is to tell it to return the last string that it finds as the '-' tells it to search from the right rather than the left..