When I run this statement in qgis fieldcalc it returns correct reults only from the first line ('Skog') and the rest gets NULL-values.
Any ideas what might be wrong here? Is it not pocssible to run CASE-statement inlcuding several lines? It seems to work when I run it with the three middle rows excluded.
CASE
when "KATEGORI" LIKE '%skog' then 'Skog'
when "KATEGORI" LIKE '%vatten%' then 'Vattenomrade'
when "KATEGORI" LIKE '%Annan%' then 'Oppen mark'
when "KATEGORI" LIKE '%ker%' then 'Oppen mark'
Else 'Bebyggd och Hardgjord mark'
END