If you're using Qlikview you can create a Cyclic group that contains the five fields. You can use the group as dimension in the chart.
Or you can use create small extra table in the script that contains the field names:
LOAD * INLINE [
Add a listbox for the FieldsForSelection field. Select one value and then enable the Always One Selected Value option in the properties of the listbox.
You can then use a calculated dimension like =$('[' & Only(FieldName) & ']') as dimension in the chart.
Refer to the attached sample,
fyi, below is back end script
Fact: Load * Inline [ Year,Country,Product,Sales 2015,India,A,1500 2016,India,B,2200 2017,India,C,3050 2015,Singapore,1950 2016,Singapore,2060 2017,Singapore,3500 ]; Dimensionlist: Load * Inline [ Dimension Year Country Product ];