I have a column filled with multiple informations in each row :
> e.g. row 1 :( 'Sécurisation des intersections;Reprise du revêtement;Ajout de signalisation (M12, feu vélo, etc.)' )
> e.g. row 1 :( 'Plateau traversant;Sécurisation des intersections;Aménagement de traversées;Ajout de signalisation (M12, feu vélo, etc.)' )
I would like to fill another column with the calculation of related value.
I will try to explain. The first field is filled with different type of road work, and it's possible that some sections needed multiple work. Therefore there is multiple type of road work in the same row separate with point comma.
Now I want to affect some price to those road work. I know the value for each type of road work and would like to calculate the sum of thoses different road work for each row.
I know how to write this :
IF "MESUACCOMP" LIKE '%Sécurisation des intersections%' THEN 1000
IF "MESUACCOMP" LIKE '%Reprise du revêtement%' THEN 5000
IF "MESUACCOMP" LIKE '%Ajout de signalisation (M12, feu vélo, etc.)%' THEN 12000
But how could I get a sum?
When those 3 case are encountered in the same line I want to have 1000+5000+12000 = 18000
This is a bit difficult to explain in English.