In QGIS attribute table of a point shapefile I have several rows with species occurrences. e.g. BA1404.
Whenever a species is present, the cell value = 1 otherwise 0
I created the new column "BA" and I converted the species code to species names: e.g. BA1404 = code
Acer negundo = species name
case
when "BA1404" = 1 then 'Acer negundo'
when "BA3501" = 1 then 'Aescolus sp.'
when "BA2007" = 1 then 'Ailanthus altissima'
when "BA2009" = 1 then 'Celtis sp.'
when "BA1304" = 1 then 'Fraxinus pennsylvanica'
when "BA2010" = 1 then 'Gleditsia triacanthos'
when "BA2002" = 1 then 'Juglans nigra'
when "BA0404" = 1 then 'Pinus strobus'
when "BA2008" = 1 then 'Platanus sp.'
when "BA3305" = 1 then 'Populus balsamifera'
when "BA0500" = 1 then 'Pseudozuga menzisii'
when "BA1105" = 1 then 'Quercus rubra'
when "BA1700" = 1 then 'Robinia pseudacacia'
when "BA3304" = 1 then 'Populus x canadensis'
when "BA1800" = 1 then 'Different species'
else 'Error'
end
Now the present species are in column "BA".
BUT, in some cases there are TWO or more species in one row (red circles in figure 1)
Then the result should be:
'Pseudozuga menzisii, Robinia pseudacacia, Populus x canadensis'
How can I resolve this?
@she_weeds: I tried with all the steps you suggested:
- select the point layer -> Field calculator -> Update existing field (case sentitive fields are adjusted). But still it does not give me any output as you can see.

What is weird: when I choose the map layer from the layer list; layer name is different from actual layer name...





